Package migratedb.v1.core.api
Enum Class MigrationType
- All Implemented Interfaces:
Serializable,Comparable<MigrationType>,java.lang.constant.Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionBaseline marker inserted by the baseline command.A migration that has been deleted by the repair command.JDBC Java-based incremental migrations.JDBC Java-based baseline migrations.Schema creation marker.SQL incremental migrations.SQL baseline migrations. -
Method Summary
Modifier and TypeMethodDescriptionstatic MigrationTypefromString(String migrationType) booleanbooleanstatic MigrationTypeReturns the enum constant of this class with the specified name.static MigrationType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SCHEMA
Schema creation marker. -
BASELINE
Baseline marker inserted by the baseline command. Its presence means that the current database state was accepted as the corresponding version without actually making any changes. -
DELETED
A migration that has been deleted by the repair command. -
SQL
SQL incremental migrations. -
SQL_BASELINE
SQL baseline migrations. -
JDBC
JDBC Java-based incremental migrations. -
JDBC_BASELINE
JDBC Java-based baseline migrations.
-
-
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
-
isExclusiveToAppliedMigrations
public boolean isExclusiveToAppliedMigrations()- Returns:
- Whether this migration type is only ever present in the schema history table, but never discovered by migration resolvers.
-
isBaselineMigration
public boolean isBaselineMigration()- Returns:
- Whether this is a baseline migration, which represents all migrations with version
≤current baseline migration version. Note that the special baseline markerBASELINEis not a real migration, and therefore not a baseline migration.
-