I am using liquibase for applying database changes. I have below changeset and below are the entries in changelog:
Changeset:
<changeSet author="me" id="1">
<addColumn tableName="order">
<column name="isBlocked" type="boolean">
</addColumn>
</changeSet>
<changeSet author="me" id="2">
<addColumn tableName="order">
<column name="shouldDecline" type="boolean">
</addColumn>
</changeSet>
In DB :
Changelog table:
-------------------------
ID | AUTHOR | AND SO ON |
-------------------------
1 | me | AND SO ON |
2 | me | AND SO ON |
-------------------------
Order Table:
--------------------------------------------
ID | isBlocked | shouldDecline | AND SO ON |
--------------------------------------------
1 | true | false | AND SO ON |
2 | true | false | AND SO ON |
--------------------------------------------
Now I want to keep the changes in Order table, but I want to remove ID#2 from changelog table. So basically I want to keep the changes from the changeSet but I want to delete the entry in changeSet and maintain only ID#1 in change but Order table should have shouldDecline column. Anyway to achieve this?
from documentation there is rollback but it wil also revert the changes from the script which I dont want. Any suggestions on this?