Package liquibase.statement.core

Examples of liquibase.statement.core.RenameColumnStatement


    }

    @SuppressWarnings("unchecked")
    @Test
    public void noSchema() throws Exception {
        this.statementUnderTest = new RenameColumnStatement(null, null, TABLE_NAME, COLUMN_NAME, "new_name", "int");

        assertCorrect("rename column table_name.column_name to new_name", DerbyDatabase.class, InformixDatabase.class);
        assertCorrect("alter table table_name alter column column_name rename to new_name", H2Database.class, HsqlDatabase.class);
        assertCorrect("alter table table_name alter column column_name to new_name", FirebirdDatabase.class);
        assertCorrect("alter table table_name change column_name new_name int", MySQLDatabase.class);
View Full Code Here


//todo      if (database instanceof SQLiteDatabase) {
//        // return special statements for SQLite databases
//        return generateStatementsForSQLiteDatabase(database);
//        }

      return new SqlStatement[] { new RenameColumnStatement(
                getCatalogName(),
                getSchemaName(),
          getTableName(), getOldColumnName(), getNewColumnName(),
          getColumnDataType(),getRemarks())
        };
View Full Code Here

TOP

Related Classes of liquibase.statement.core.RenameColumnStatement

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.