Enum MigrationType

    • Enum Constant Detail

      • 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 Detail

      • values

        public static MigrationType[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (MigrationType c : MigrationType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static MigrationType valueOf​(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:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • 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.