You may create a primary key in a few different ways using Liquibase. Do you know which Liquibase changes support autorollback and which don't? Check sixty first question of full-stack dev quiz to test your knowledge.
Autorollback in Liquibase is a feature that allows automatically generate a rollback SQL script for a particular change. Some Liquibase changes support it. For those, Liquibase will take care of everything during a rollback. But some changes do not. Then you have to write your own rollback script if you would like to have it just in case of a rollback. Which of the following changes related to primary keys support autorollback? Choose all valid answers.
- createTable
- dropTable
- addPrimaryKey
- dropPrimaryKey
For the correct answer scroll down
.
.
.
.
.
.
The correct answer is: a, c. If you would like to read more, check Create and manage primary keys article.