Enum Class CoreMigrationType

java.lang.Object
java.lang.Enum<CoreMigrationType>
org.flywaydb.core.api.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
  • Enum Constant Details

  • Method Details

    • values

      public static CoreMigrationType[] 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 CoreMigrationType 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 org.flywaydb.core.extensibility.MigrationType fromString(String migrationType)
    • isSynthetic

      public boolean isSynthetic()
      Specified by:
      isSynthetic in interface org.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 interface org.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 interface org.flywaydb.core.extensibility.MigrationType
      Returns:
      Whether this is a baseline type