Class LiquibaseRollbackOneUpdateSQL

  • All Implemented Interfaces:
    org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

    public class LiquibaseRollbackOneUpdateSQL
    extends AbstractLiquibaseChangeLogMojo
    Displays the SQL which will be executed when the corresponding rollbackOneUpdate command is executed. This command does not perform the actual rollback. A Liquibase Pro license key is required.
    • Field Detail

      • deploymentId

        @PropertyElement
        protected String deploymentId
        Specifies the Deployment ID in the DATABASECHANGELOG table for all changesets you want to rollback.
      • outputFile

        @PropertyElement
        protected String outputFile
        Specifies the path to the generated SQL output file.
    • Constructor Detail

      • LiquibaseRollbackOneUpdateSQL

        public LiquibaseRollbackOneUpdateSQL()
    • Method Detail

      • execute

        public void execute()
                     throws org.apache.maven.plugin.MojoExecutionException,
                            org.apache.maven.plugin.MojoFailureException
        Specified by:
        execute in interface org.apache.maven.plugin.Mojo
        Overrides:
        execute in class AbstractLiquibaseMojo
        Throws:
        org.apache.maven.plugin.MojoExecutionException
        org.apache.maven.plugin.MojoFailureException
      • performLiquibaseTask

        protected void performLiquibaseTask​(liquibase.Liquibase liquibase)
                                     throws liquibase.exception.LiquibaseException
        Description copied from class: AbstractLiquibaseChangeLogMojo
        Performs the actual Liquibase task on the database using the fully configured Liquibase.
        Overrides:
        performLiquibaseTask in class AbstractLiquibaseChangeLogMojo
        Parameters:
        liquibase - The Liquibase that has been fully configured to run the desired database task.
        Throws:
        liquibase.exception.LiquibaseException