Enum Class MigrationType

java.lang.Object
java.lang.Enum<MigrationType>
migratedb.v1.core.api.MigrationType
All Implemented Interfaces:
Serializable, Comparable<MigrationType>, java.lang.constant.Constable

public enum MigrationType extends Enum<MigrationType>
  • Enum Constant Details

    • SCHEMA

      public static final MigrationType SCHEMA
      Schema creation marker.
    • BASELINE

      public static final MigrationType 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

      public static final MigrationType DELETED
      A migration that has been deleted by the repair command.
    • SQL

      public static final MigrationType SQL
      SQL incremental migrations.
    • SQL_BASELINE

      public static final MigrationType SQL_BASELINE
      SQL baseline migrations.
    • JDBC

      public static final MigrationType JDBC
      JDBC Java-based incremental migrations.
    • JDBC_BASELINE

      public static final MigrationType JDBC_BASELINE
      JDBC Java-based baseline migrations.
  • Method Details

    • values

      public static MigrationType[] 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

      public static MigrationType valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • fromString

      public static MigrationType fromString(String migrationType)
    • 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 marker BASELINE is not a real migration, and therefore not a baseline migration.