
liquibase.ext.ora.dropcheck.DropCheckChange Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of liquibase-oracle Show documentation
Show all versions of liquibase-oracle Show documentation
Some tags to work on Oracle DB.
package liquibase.ext.ora.dropcheck;
import liquibase.change.ChangeMetaData;
import liquibase.change.DatabaseChange;
import liquibase.database.Database;
import liquibase.ext.ora.check.CheckAttribute;
import liquibase.statement.SqlStatement;
@DatabaseChange(name="dropCheck", description = "Drop check", priority = ChangeMetaData.PRIORITY_DEFAULT)
public class DropCheckChange extends CheckAttribute {
public DropCheckChange() {
}
public SqlStatement[] generateStatements(Database database) {
String schemaname = getSchemaName() == null ? database.getDefaultSchemaName() : getSchemaName();
DropCheckStatement statement = new DropCheckStatement(schemaname, getTableName(), getConstraintName());
return new SqlStatement[]
{
statement
};
}
public String getConfirmationMessage() {
return getConstraintName() + " check DROPPED from " + getTableName();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy