Package org.flywaydb.core.api
Enum Class CoreMigrationType
- All Implemented Interfaces:
Serializable
,Comparable<CoreMigrationType>
,Constable
,org.flywaydb.core.extensibility.MigrationType
public enum CoreMigrationType
extends Enum<CoreMigrationType>
implements org.flywaydb.core.extensibility.MigrationType
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionBaseline migration.Migrations using custom MigrationResolvers.Deleted migrationJDBC Java-based migrations.Schema creation migration.Script migrations.Deprecated.Will be removed and replaced with just SCRIPT Script baseline migrations.SQL migrations.Undo Script migrations. -
Method Summary
Modifier and TypeMethodDescriptionstatic org.flywaydb.core.extensibility.MigrationType
fromString
(String migrationType) boolean
boolean
boolean
isUndo()
static CoreMigrationType
Returns the enum constant of this class with the specified name.static CoreMigrationType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
Methods inherited from interface org.flywaydb.core.extensibility.MigrationType
name
-
Enum Constant Details
-
SCHEMA
Schema creation migration. -
BASELINE
Baseline migration. -
DELETE
Deleted migration -
SQL
SQL migrations. -
JDBC
JDBC Java-based migrations. -
SCRIPT
Script migrations. -
SCRIPT_BASELINE
Deprecated.Will be removed and replaced with just SCRIPT Script baseline migrations. -
UNDO_SCRIPT
Undo Script migrations. -
CUSTOM
Migrations using custom MigrationResolvers.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
fromString
-
isSynthetic
public boolean isSynthetic()- Specified by:
isSynthetic
in interfaceorg.flywaydb.core.extensibility.MigrationType
- Returns:
- Whether this is a synthetic migration type, which is only ever present in the schema history table, but never discovered by migration resolvers.
-
isUndo
public boolean isUndo()- Specified by:
isUndo
in interfaceorg.flywaydb.core.extensibility.MigrationType
- Returns:
- Whether this is an undo migration, which has undone an earlier migration present in the schema history table.
-
isBaseline
public boolean isBaseline()- Specified by:
isBaseline
in interfaceorg.flywaydb.core.extensibility.MigrationType
- Returns:
- Whether this is a baseline type
-