Rollback <tag> delete tagDatabase
Description
Environment
Windows 10, Postgresql 9.6
Activity
Show:
Adam Gardner November 9, 2018 at 10:35 PM
This is caused by CORE-2815, which was a bad change that shouldn't have been made.
A fix has been requested multiple times, see CORE-2946, CORE-3088, and probably others.
https://liquibase.jira.com/browse/CORE-2815 - it's wrong behavior. Old behavior was right.
Example1. Right behavior:
I made some changes. Set tag with command line liquibase tag 1.0.
I made yet some changes. Set tag with command line liquibase tag 1.1.
See in database - everythin OK: last row have tag=1.1.
I want to rollback to 1.0 version. I do liquibase rollback 1.0. See in database - everything OK: last row have tag=1.0.
Example2. Wrong behavior:
I made some changes. Added tagDatabase tag=1.0 to the end of changelog-1.0.xml.
I made some changes. Added tagDatabase tag=1.1 to the end of changelog-1.1.xml.
I see in database - everything OK: last row have tag=1.1.
I want to rollback to 1.0 version. I do liquibase rollback 1.0. See in database - ERROR, WRONG STATE: last row have tag=null. I can't find out what is version in the database.