Search in sources :

Example 1 with DropPrimaryKeyStatement

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 };
}
Also used : SqlStatement(liquibase.statement.SqlStatement) DropPrimaryKeyStatement(liquibase.statement.core.DropPrimaryKeyStatement) SQLiteDatabase(liquibase.database.core.SQLiteDatabase)

Aggregations

SQLiteDatabase (liquibase.database.core.SQLiteDatabase)1 SqlStatement (liquibase.statement.SqlStatement)1 DropPrimaryKeyStatement (liquibase.statement.core.DropPrimaryKeyStatement)1