What all the steps Liquibase follows while rolling back?

后端 未结 2 634
别跟我提以往
别跟我提以往 2021-01-26 07:17

I don\'t understand the detailed steps when rolling back using Liquibase.

I had scenario like 6 changesets and for one changeSet rollback was not defined - that is, on

2条回答
  •  走了就别回头了
    2021-01-26 08:01

    Depending on your change sets, may be you fall in case of statements having rollback commands generated automatically, as for Liquibase Rollback documentation:

    Many refactorings such as “create table”, “rename column”, and “add column” can automatically create rollback statements. If your change log contains only statements that fit into this category, your rollback commands will be generated automatically.

    Other refactorings such as “drop table” and “insert data” have no corresponding rollback commands that can be automatically generated. In these cases, and cases where you want to override the default generated rollback commands, you can specify the rollback commands via the tag within the changeSet tag. If you do not want anything done to undo a change in rollback mode, use an empty tag.

    At http://forum.liquibase.org/topic/understanding-rollback you can find more details and other links.

提交回复
热议问题