Package liquibase.change.core

Examples of liquibase.change.core.DropTableChange


        //todo
    }

    @Override
    public Change[] revertDatabase(CreateProcedureChange change) throws Exception {
        DropTableChange dropTableChange = new DropTableChange();
        dropTableChange.setCatalogName(change.getCatalogName());
        dropTableChange.setSchemaName(change.getSchemaName());
        dropTableChange.setTableName("customers");

        DropProcedureChange dropProcedureChange = new DropProcedureChange();
        dropProcedureChange.setCatalogName(change.getCatalogName());
        dropProcedureChange.setSchemaName(change.getSchemaName());
        dropProcedureChange.setProcedureName("new_customer");
View Full Code Here


    @Override
    public Change[] fixUnexpected(DatabaseObject unexpectedObject, DiffOutputControl control, Database referenceDatabase, Database comparisonDatabase, ChangeGeneratorChain chain) {
        Table unexpectedTable = (Table) unexpectedObject;

        DropTableChange change = new DropTableChange();
        change.setTableName(unexpectedTable.getName());
        if (control.getIncludeCatalog()) {
            change.setCatalogName(unexpectedTable.getSchema().getCatalogName());
        }
        if (control.getIncludeSchema()) {
            change.setSchemaName(unexpectedTable.getSchema().getName());
        }

        for (Column column : unexpectedTable.getColumns()) {
            control.setAlreadyHandledUnexpected(column);
        };
View Full Code Here

TOP

Related Classes of liquibase.change.core.DropTableChange

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.