Search in sources :

Example 1 with RenameSequenceStatement

use of liquibase.statement.core.RenameSequenceStatement in project liquibase by liquibase.

the class RenameSequenceChange method generateStatements.

@Override
public SqlStatement[] generateStatements(Database database) {
    List<SqlStatement> statements = new ArrayList<SqlStatement>();
    statements.add(new RenameSequenceStatement(getCatalogName(), getSchemaName(), getOldSequenceName(), getNewSequenceName()));
    return statements.toArray(new SqlStatement[statements.size()]);
}
Also used : SqlStatement(liquibase.statement.SqlStatement) ArrayList(java.util.ArrayList) RenameSequenceStatement(liquibase.statement.core.RenameSequenceStatement)

Aggregations

ArrayList (java.util.ArrayList)1 SqlStatement (liquibase.statement.SqlStatement)1 RenameSequenceStatement (liquibase.statement.core.RenameSequenceStatement)1