Enum MigrationType

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<MigrationType>, java.lang.constant.Constable

    public enum MigrationType
    extends java.lang.Enum<MigrationType>
    Type of migration.
    • Nested Class Summary

      • Nested classes/interfaces inherited from class java.lang.Enum

        java.lang.Enum.EnumDesc<E extends java.lang.Enum<E>>
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      BASELINE
      Baseline migration.
      CUSTOM
      Migrations using custom MigrationResolvers.
      JDBC
      JDBC Java-based migrations.
      SCHEMA
      Schema creation migration.
      SPRING_JDBC
      Deprecated.
      Will be removed in Flyway 7.0.
      SQL
      SQL migrations.
      UNDO_CUSTOM
      Undo migrations using custom MigrationResolvers.
      UNDO_JDBC
      Undo JDBC java-based migrations.
      UNDO_SPRING_JDBC
      Deprecated.
      Will be removed in Flyway 7.0.
      UNDO_SQL
      Undo SQL migrations.
    • Method Summary

      Modifier and Type Method Description
      boolean isSynthetic()  
      boolean isUndo()  
      static MigrationType valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static MigrationType[] values()
      Returns an array containing the constants of this enum type, 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 class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • SCHEMA

        public static final MigrationType SCHEMA
        Schema creation migration.
      • BASELINE

        public static final MigrationType BASELINE
        Baseline migration.
      • UNDO_SQL

        public static final MigrationType UNDO_SQL
        Undo SQL migrations.
      • JDBC

        public static final MigrationType JDBC
        JDBC Java-based migrations.
      • UNDO_JDBC

        public static final MigrationType UNDO_JDBC
        Undo JDBC java-based migrations.
      • SPRING_JDBC

        @Deprecated
        public static final MigrationType SPRING_JDBC
        Deprecated.
        Will be removed in Flyway 7.0. Use JDBC instead.
        Spring JDBC Java-based migrations.
      • UNDO_SPRING_JDBC

        @Deprecated
        public static final MigrationType UNDO_SPRING_JDBC
        Deprecated.
        Will be removed in Flyway 7.0. Use UNDO_JDBC instead.
        Undo Spring JDBC java-based migrations.
      • CUSTOM

        public static final MigrationType CUSTOM
        Migrations using custom MigrationResolvers.
      • UNDO_CUSTOM

        public static final MigrationType UNDO_CUSTOM
        Undo migrations using custom MigrationResolvers.
    • Method Detail

      • values

        public static MigrationType[] values()
        Returns an array containing the constants of this enum type, in the order they are declared.
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static MigrationType valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • isSynthetic

        public boolean isSynthetic()
        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()
        Returns:
        Whether this is an undo migration, which has undone an earlier migration present in the schema history table.