-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
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
Wrong dependency order when generating diffChangeLog for addColumn --> addPrimaryKey #1722
Comments
@szandany Did you test this against any previous versions of Liquibase? |
@wwillard7800 Yes. This was tested with 4.0.0 as well. |
Did it work in that version? |
No. I got the same result. |
I'm going to give this a try now, @szandany. This is a very basic use case that should be working (of course!). Thanks for bringing our attention to the issue. |
I can reproduce the bug following your steps, @szandany. I'd raise this to Product to make sure it gets added to a sprint. Thanks for the excellent bug report! |
Fixed in #1733 |
Fix #1733 merged into master for 4.4.0 |
Environment
Liquibase Version:
4.3.1
Liquibase Integration & Version:
CLI
Database Vendor & Version:
PostgreSQL
Operating System Type & Version:
Linux, Windows
changeLog format:
XML, YAML, JSON, Formatted SQL
Description
When generating a diffChangLog between the target schema and the reference schema, the resulting changeLog will reflect changes in the wrong order for addColumn --> addPrimaryKey change sets order.
This issue is happening for all changeLog formats.
Steps To Reproduce
liquibase diffChangeLog
between the reference schema and the target schema.Actual Behavior
The resulting changeSets in the generated changeLog will look like the following:
The primary key creation and add column creation are in the wrong order.
Expected/Desired Behavior
The text was updated successfully, but these errors were encountered: