We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Liquibase Version: 4.3.3
Database Vendor & Version: Postgresql for sure, probably all
When running diffChangelog or generateChangelog, addColumn elements are added BEFORE corresponding createTable elements.
<changeSet author="author_name" id="1"> <createTable tableName="baseInfo"> <column name="id" type="INTEGER"> <constraints nullable="false" primaryKey="true" primaryKeyName="baseInfo_pkey"/> </column> <column name="first" type="VARCHAR(150)"/> <column name="middle" type="VARCHAR(150)"/> <column name="last" type="VARCHAR(150)"/> </createTable> </changeSet>
<changeSet author="Edi(generated)" id="1618486085348-1"> <addColumn tableName="baseInfo"> <column name="id" type="int4"> <constraints nullable="false"/> </column> </addColumn> </changeSet> <changeSet author="Edi (generated)" id="1618486085348-2"> <createTable tableName="baseInfo"> <column name="id" type="INTEGER"> <constraints nullable="false" primaryKey="true" primaryKeyName="baseInfo_pkey"/> </column> <column name="first" type="VARCHAR(150)"/> <column name="middle" type="VARCHAR(150)"/> <column name="last" type="VARCHAR(150)"/> <column name="RandomId" type="INTEGER"/> </createTable> </changeSet>
which fails “liquibase update” because the addColumn command should not be there.
The text was updated successfully, but these errors were encountered:
➤ Pavlo Tytarchuk commented:
Verified with version 4.3.4 #54 . Moving to “Ready to Merge”.
Sorry, something went wrong.
nvoxland
No branches or pull requests
Environment
Liquibase Version: 4.3.3
Database Vendor & Version: Postgresql for sure, probably all
Description
When running diffChangelog or generateChangelog, addColumn elements are added BEFORE corresponding createTable elements.
Steps to Reproduce
which fails “liquibase update” because the addColumn command should not be there.
The text was updated successfully, but these errors were encountered: