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, toTagchangeLogDirectory, changeLogFile, contexts, duplicateFileMode, hubApiKey, hubMode, hubUrl, labelFilter, labelschangelogCatalogName, changelogSchemaName, clearCheckSums, commandName, databaseChangeLogLockTableName, databaseChangeLogTableName, databaseClass, defaultCatalogName, 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.
|
performLiquibaseTaskcheckRequiredParametersAreSpecified, getLabelFilter, getResourceAccessorconfigureChangeLogProperties, configureFieldsAndValues, databaseConnectionRequired, execute, getClassLoaderIncludingProjectClasspath, getField, getLicenseKey, getLiquibase, getMavenArtifactClassLoader, getOutputWriter, isPromptOnNonLocalDatabase, parsePropertiesFile, setupBindInfoPackage@PropertyElement protected File migrationSqlOutputFile
protected void doUpdate(Liquibase liquibase) throws LiquibaseException
AbstractLiquibaseUpdateMojodoUpdate in class AbstractLiquibaseUpdateMojoliquibase - The Liquibase object to use to perform the "update".LiquibaseExceptionprotected 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 AbstractLiquibaseUpdateMojoindent - The indent string to use when printing the settings.protected void cleanup(Database db)
cleanup in class AbstractLiquibaseMojoCopyright © 2022 Liquibase.org. All rights reserved.