use of liquibase.statement.core.DropPrimaryKeyStatement in project liquibase by liquibase.
the class DropPrimaryKeyChange method generateStatements.
@Override
public SqlStatement[] generateStatements(Database database) {
if (database instanceof SQLiteDatabase) {
// return special statements for SQLite databases
return generateStatementsForSQLiteDatabase(database);
}
DropPrimaryKeyStatement statement = new DropPrimaryKeyStatement(getCatalogName(), getSchemaName(), getTableName(), getConstraintName());
statement.setDropIndex(this.dropIndex);
return new SqlStatement[] { statement };
}
Aggregations