public class V5_0_2014_09_25__DS_1582_Metadata_For_All_Objects_drop_constraint extends Object implements org.flywaydb.core.api.migration.jdbc.JdbcMigration, org.flywaydb.core.api.migration.MigrationChecksumProvider
This class was created because the names of database constraints differs based on the type of database (Postgres vs. Oracle vs. H2). As such, it becomes difficult to write simple SQL which will work for multiple database types (especially since unit tests require H2 and the syntax for H2 is different from either Oracle or Postgres).
NOTE: This migration class is very simple because it is meant to be used in conjuction with the corresponding SQL script: ./etc/migrations/[db-type]/V5.0_2014_09_26__DS-1582_Metadata_For_All_Objects.sql
Also note that this migration is dated as 2014_09_25 so that it will run just PRIOR to the corresponding SQL script listed above.
This class represents a Flyway DB Java Migration http://flywaydb.org/documentation/migration/java.html
| Constructor and Description |
|---|
V5_0_2014_09_25__DS_1582_Metadata_For_All_Objects_drop_constraint() |
| Modifier and Type | Method and Description |
|---|---|
Integer |
getChecksum()
Return the checksum to be associated with this Migration
in the Flyway database table (schema_version).
|
void |
migrate(Connection connection)
Actually migrate the existing database
|
public V5_0_2014_09_25__DS_1582_Metadata_For_All_Objects_drop_constraint()
public void migrate(Connection connection) throws IOException, SQLException
migrate in interface org.flywaydb.core.api.migration.jdbc.JdbcMigrationconnection - IOExceptionSQLExceptionpublic Integer getChecksum()
getChecksum in interface org.flywaydb.core.api.migration.MigrationChecksumProviderCopyright © 2014 DuraSpace. All Rights Reserved.