Class LiquibaseRollback

  • All Implemented Interfaces:
    org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
    Direct Known Subclasses:
    LiquibaseFutureRollbackSQL, LiquibaseRollbackSQL

    public class LiquibaseRollback
    extends AbstractLiquibaseChangeLogMojo

    Invokes Liquibase to rollback the database (and mark changesets as unapplied). The changesets to be rolled back are specified using attributes 'rollbackCount', 'rollbackTag' and/or 'rollbackDate'

    • Field Detail

      • rollbackTag

        protected String rollbackTag
        The tag to roll the database back to.
      • rollbackCount

        protected int rollbackCount
        The number of changesets to rollback.
      • rollbackDate

        protected String rollbackDate
        The date to rollback the database to. The format of the date must match either an ISO date format, or that of the DateFormat.getDateInstance() for the platform the plugin is executing on.
      • rollbackScript

        protected String rollbackScript
        External script containing rollback logic. Set to override the rollback logic contained in the changelog
    • Constructor Detail

      • LiquibaseRollback

        public LiquibaseRollback()