...
Code Block |
---|
language | bash |
---|
title | yang_resource@2021-12-13.csvRollback Count |
---|
|
mvn compile org.liquibase:liquibase-maven-plugin:4.3.1:rollback -Dliquibase.rollbackCount=*number-of-change-sets-to-rollback* -Dliquibase.url=jdbc:postgresql://localhost:5432/cpsdb -Dliquibase.username=cps -Dliquibase.password=cps -Dliquibase.changeLogFile=src/main/resources/changelog/changelog-master.yaml |
...
Code Block |
---|
language | bash |
---|
title | yang_resource@2021-12-13.csvRollback Tag |
---|
|
mvn compile org.liquibase:liquibase-maven-plugin:4.3.1:rollback -Dliquibase.rollbackTag=*liquibase-tag-to-rollback-to* -Dliquibase.url=jdbc:postgresql://localhost:5432/cpsdb -Dliquibase.username=cps -Dliquibase.password=cps -Dliquibase.changeLogFile=src/main/resources/changelog/changelog-master.yaml |
...
Code Block |
---|
language | bash |
---|
title | yang_resource@2021-12-13.csvRollback Date |
---|
|
mvn compile org.liquibase:liquibase-maven-plugin:4.3.1:rollback -Dliquibase.rollbackDate=*date-to-rollback-to* -Dliquibase.url=jdbc:postgresql://localhost:5432/cpsdb -Dliquibase.username=cps -Dliquibase.password=cps -Dliquibase.changeLogFile=src/main/resources/changelog/changelog-master.yaml |
Potential Issues
If the following issue arises:
Code Block |
---|
|
Caused by: liquibase.exception.ValidationFailedException: Validation Failed: |
Issue the following command to clear checksums:
Code Block |
---|
|
mvn compile org.liquibase:liquibase-maven-plugin:4.3.1:clearCheckSums -Dliquibase.url=jdbc:postgresql://localhost:5432/cpsdb -Dliquibase.username=cps -Dliquibase.password=cps |