public class LiquibaseRollbackSQL extends LiquibaseRollback
Generates the SQL that is required to rollback the database using one or more of the specified attributes 'rollbackCount', 'rollbackTag' and/or 'rollbackDate'
LiquibaseRollback.RollbackType| Modifier and Type | Field and Description |
|---|---|
protected File |
migrationSqlOutputFile
The file to output the Rollback SQL script to, if it exists it will be
overwritten.
|
rollbackCount, rollbackDate, rollbackScript, rollbackTag, typechangeLogDirectory, changeLogFile, contexts, hubApiKey, hubMode, hubUrl, labelschangelogCatalogName, changelogSchemaName, clearCheckSums, commandName, databaseChangeLogLockTableName, databaseChangeLogTableName, databaseClass, defaultCatalogName, defaultSchemaName, driver, emptyPassword, includeArtifact, includeTestOutputDirectory, liquibaseProLicenseKey, logging, outputDefaultCatalog, outputDefaultSchema, outputFileEncoding, password, project, promptOnNonLocalDatabase, propertyFile, propertyFileWillOverride, propertyProviderClass, skip, systemProperties, url, username, verbose, wagonManager| Constructor and Description |
|---|
LiquibaseRollbackSQL() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
cleanup(Database db) |
protected Liquibase |
createLiquibase(Database db) |
protected void |
performLiquibaseTask(Liquibase liquibase)
Performs the actual Liquibase task on the database using the fully configured
Liquibase. |
protected void |
printSettings(String indent)
Prints the settings that have been set of defaulted for the plugin.
|
checkRequiredParametersAreSpecified, checkRequiredRollbackParameters, parseDategetResourceAccessorconfigureChangeLogProperties, configureFieldsAndValues, databaseConnectionRequired, execute, getClassLoaderIncludingProjectClasspath, getField, getLiquibase, getMavenArtifactClassLoader, getOutputWriter, hasProLicense, isPromptOnNonLocalDatabase, parsePropertiesFile, setupBindInfoPackage@PropertyElement protected File migrationSqlOutputFile
protected Liquibase createLiquibase(Database db) throws org.apache.maven.plugin.MojoExecutionException
createLiquibase in class AbstractLiquibaseChangeLogMojoorg.apache.maven.plugin.MojoExecutionExceptionprotected void printSettings(String indent)
AbstractLiquibaseMojoprintSettings in class LiquibaseRollbackindent - The indent string to use when printing the settings.protected void cleanup(Database db)
cleanup in class AbstractLiquibaseMojoprotected void performLiquibaseTask(Liquibase liquibase) throws LiquibaseException
AbstractLiquibaseChangeLogMojoLiquibase.performLiquibaseTask in class LiquibaseRollbackliquibase - The Liquibase that has been fully
configured to run the desired database task.LiquibaseExceptionCopyright © 2022 Liquibase.org. All rights reserved.