liquibase.command.core.FutureRollbackSqlCommandStep Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of liquibase-core Show documentation
Show all versions of liquibase-core Show documentation
Liquibase is a tool for managing and executing database changes.
The newest version!
package liquibase.command.core;
import liquibase.command.CommandArgumentDefinition;
import liquibase.command.CommandBuilder;
import liquibase.command.CommandDefinition;
public class FutureRollbackSqlCommandStep extends AbstractFutureRollbackCommandStep {
public static final String[] COMMAND_NAME = {"futureRollbackSql"};
public static final CommandArgumentDefinition OUTPUT_DEFAULT_SCHEMA_ARG;
public static final CommandArgumentDefinition OUTPUT_DEFAULT_CATALOG_ARG;
static {
CommandBuilder builder = new CommandBuilder(COMMAND_NAME);
OUTPUT_DEFAULT_SCHEMA_ARG = builder.argument("outputDefaultSchema", Boolean.class)
.description("Control whether names of objects in the default schema are fully qualified or not. If true they are. If false, only objects outside the default schema are fully qualified")
.defaultValue(true)
.build();
OUTPUT_DEFAULT_CATALOG_ARG = builder.argument("outputDefaultCatalog", Boolean.class)
.description("Control whether names of objects in the default catalog are fully qualified or not. If true they are. If false, only objects outside the default catalog are fully qualified")
.defaultValue(true)
.build();
}
@Override
public String[][] defineCommandNames() {
return new String[][] { COMMAND_NAME };
}
@Override
public void adjustCommandDefinition(CommandDefinition commandDefinition) {
commandDefinition.setShortDescription("Generate the raw SQL needed to rollback undeployed changes");
}
}