public class LiquibaseUpdateSQL extends AbstractLiquibaseUpdateMojo
Generates the SQL that is required to update the database to the current version as specified in the DatabaseChangeLogs.
Modifier and Type | Field and Description |
---|---|
protected File |
migrationSqlOutputFile
The file to output the Migration SQL script to, if it exists it will be
overwritten.
|
changesToApply, rollbackOnError, toTag
changeLogDirectory, changeLogFile, contexts, duplicateFileMode, hubApiKey, hubMode, hubUrl, labelFilter, labels
changeExecListenerClass, changeExecListenerPropertiesFile, changelogCatalogName, changelogSchemaName, clearCheckSums, commandName, databaseChangeLogLockTableName, databaseChangeLogTableName, databaseClass, defaultCatalogName, defaultChangeExecListener, defaultSchemaName, driver, emptyPassword, includeArtifact, includeTestOutputDirectory, logging, outputDefaultCatalog, outputDefaultSchema, outputFileEncoding, password, preserveSchemaCase, project, promptOnNonLocalDatabase, propertyFile, propertyFileWillOverride, propertyProviderClass, psqlArgs, psqlExecutorName, psqlKeepTemp, psqlKeepTempName, psqlKeepTempPath, psqlLogFile, psqlPath, psqlTimeout, searchPath, showBanner, skip, sqlcmdArgs, sqlcmdCatalogName, sqlcmdExecutorName, sqlcmdKeepTemp, sqlcmdKeepTempName, sqlcmdKeepTempOverwrite, sqlcmdKeepTempPath, sqlcmdLogFile, sqlcmdPath, sqlcmdTimeout, sqlPlusArgs, sqlPlusExecutorName, sqlPlusKeepTemp, sqlPlusKeepTempName, sqlPlusKeepTempOverwrite, sqlPlusKeepTempPath, sqlPlusLogFile, sqlPlusPath, sqlPlusTimeout, systemProperties, url, username, verbose, wagonManager
Constructor and Description |
---|
LiquibaseUpdateSQL() |
Modifier and Type | Method and Description |
---|---|
protected void |
cleanup(Database db) |
protected Liquibase |
createLiquibase(Database db) |
protected void |
doUpdate(Liquibase liquibase)
Performs the actual "update" work on the database.
|
protected void |
printSettings(String indent)
Prints the settings that have been set of defaulted for the plugin.
|
handleUpdateException, performLiquibaseTask
checkRequiredParametersAreSpecified, getLabelFilter, getResourceAccessor
configureChangeLogProperties, configureFieldsAndValues, databaseConnectionRequired, execute, getClassLoaderIncludingProjectClasspath, getField, getLicenseKey, getLiquibase, getMavenArtifactClassLoader, getOutputWriter, isPromptOnNonLocalDatabase, parsePropertiesFile, setupBindInfoPackage
@PropertyElement protected File migrationSqlOutputFile
protected void doUpdate(Liquibase liquibase) throws LiquibaseException
AbstractLiquibaseUpdateMojo
doUpdate
in class AbstractLiquibaseUpdateMojo
liquibase
- The Liquibase object to use to perform the "update".LiquibaseException
protected Liquibase createLiquibase(Database db) throws org.apache.maven.plugin.MojoExecutionException
createLiquibase
in class AbstractLiquibaseChangeLogMojo
org.apache.maven.plugin.MojoExecutionException
protected void printSettings(String indent)
AbstractLiquibaseMojo
printSettings
in class AbstractLiquibaseUpdateMojo
indent
- The indent string to use when printing the settings.protected void cleanup(Database db)
cleanup
in class AbstractLiquibaseMojo
Copyright © 2023 Liquibase.org. All rights reserved.