@Test public void testExpandForDroppingTable() { DropTable operation = SchemaOperations.dropTable("users"); changelog.addChangeSet("Michael de Jong", "Dropped 'users' table.", operation); migrator.migrate(catalog, refLog, changelog.getLastAdded(), operation); assertEquals(1, catalog.getTables().size()); assertFalse(refLog.getTableRefs(changelog.getLastAdded()).stream() .anyMatch(tableRef -> tableRef.getName().equals("users"))); }
@Override public void migrate(Catalog catalog, RefLog refLog, Version version, DropTable operation) { refLog.fork(version); refLog.dropTable(version, operation.getTableName()); }
DropTableMigrator implements SchemaOperationMigrator<DropTable> { @Override public void migrate(Catalog catalog, RefLog refLog, Version version, DropTable operation) { refLog.fork(version); refLog.dropTable(version, operation.getTableName()); } }
DropTableMigrator implements SchemaOperationMigrator<DropTable> { @Override public void migrate(Catalog catalog, RefLog refLog, Version version, DropTable operation) { refLog.fork(version); refLog.dropTable(version, operation.getTableName()); }  }
DropTableMigrator implements SchemaOperationMigrator<DropTable> { @Override public void migrate(Catalog catalog, RefLog refLog, Version version, DropTable operation) { refLog.fork(version); refLog.dropTable(version, operation.getTableName()); }  @Override void migrate(Catalog catalog, RefLog refLog, Version version, DropTable operation); }
DropTableMigrator implements SchemaOperationMigrator<DropTable> { @Override public void migrate(Catalog catalog, RefLog refLog, Version version, DropTable operation) { refLog.fork(version); refLog.dropTable(version, operation.getTableName()); }  @Override void migrate(Catalog catalog, RefLog refLog, Version version, DropTable operation);  }