Package liquibase.statement.core

Examples of liquibase.statement.core.DropTableStatement


       
        ExecutorService.getInstance().setExecutor(database, mockExecutor);
       
        final List<SqlVisitor> sqlVisitors = new ArrayList<SqlVisitor>();
       
        final SqlStatement dropTableStatement = new DropTableStatement(null, null, "test_table", false);
       
        final AppendSqlVisitor appendSqlVisitor = new AppendSqlVisitor();
        appendSqlVisitor.setApplyToRollback(false);
        appendSqlVisitor.setValue(" SHOULD NOT BE APPENDED");
       
View Full Code Here


       
        ExecutorService.getInstance().setExecutor(database, mockExecutor);
       
        final List<SqlVisitor> sqlVisitors = new ArrayList<SqlVisitor>();
       
        final SqlStatement dropTableStatement = new DropTableStatement(null, null, "test_table", false);       
       
        final AppendSqlVisitor appendSqlVisitor = new AppendSqlVisitor();
       
        appendSqlVisitor.setApplyToRollback(true);
        appendSqlVisitor.setValue(" SHOULD BE APPENDED");
View Full Code Here

        if (isCascadeConstraints() != null) {
            constraints = isCascadeConstraints();
        }
       
        return new SqlStatement[]{
                new DropTableStatement(getCatalogName(), getSchemaName(), getTableName(), constraints)
        };
    }
View Full Code Here

        clearDatabase(liquibase);

        //run again to test changelog testing logic
        Executor executor = ExecutorService.getInstance().getExecutor(database);
        try {
            executor.execute(new DropTableStatement("lbcat2", "lbcat2", database.getDatabaseChangeLogTableName(), false));
        } catch (DatabaseException e) {
            //ok
        }
        try {
            executor.execute(new DropTableStatement("lbcat2", "lbcat2", database.getDatabaseChangeLogLockTableName(), false));
        } catch (DatabaseException e) {
            //ok
        }
        database.commit();
View Full Code Here

//        liquibase.update(this.contexts);
//    }

    private void dropDatabaseChangeLogTable(String catalog, String schema, Database database) {
        try {
            ExecutorService.getInstance().getExecutor(database).execute(new DropTableStatement(catalog, schema, database.getDatabaseChangeLogTableName(), false));
        } catch (DatabaseException e) {
            ; //ok
        }
    }
View Full Code Here

TOP

Related Classes of liquibase.statement.core.DropTableStatement

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.