Class NormalizeJobTypeConstraintMigration
java.lang.Object
db.migration.NormalizeJobTypeConstraintMigration
- All Implemented Interfaces:
org.flywaydb.core.api.migration.JavaMigration
public class NormalizeJobTypeConstraintMigration
extends Object
implements org.flywaydb.core.api.migration.JavaMigration
Replaces every legacy
jobs.type check with one canonical constraint.- Version:
- 3.0.1
- Author:
- Stephen Prizio
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanAllows the migration to execute transactionally where the database supports it.Returns the checksum for this migration.Returns the Flyway description for this migration.org.flywaydb.core.api.MigrationVersionReturns the Flyway version for this migration.voidmigrate(org.flywaydb.core.api.migration.Context context) Normalizes thejobs.typecheck constraint.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.flywaydb.core.api.migration.JavaMigration
getResolvedMigration, getType
-
Constructor Details
-
NormalizeJobTypeConstraintMigration
public NormalizeJobTypeConstraintMigration()
-
-
Method Details
-
getVersion
public org.flywaydb.core.api.MigrationVersion getVersion()Returns the Flyway version for this migration.- Specified by:
getVersionin interfaceorg.flywaydb.core.api.migration.JavaMigration
-
getDescription
Returns the Flyway description for this migration.- Specified by:
getDescriptionin interfaceorg.flywaydb.core.api.migration.JavaMigration
-
getChecksum
Returns the checksum for this migration.- Specified by:
getChecksumin interfaceorg.flywaydb.core.api.migration.JavaMigration
-
canExecuteInTransaction
public boolean canExecuteInTransaction()Allows the migration to execute transactionally where the database supports it.- Specified by:
canExecuteInTransactionin interfaceorg.flywaydb.core.api.migration.JavaMigration
-
migrate
-