Interface MigrationInfoProvider


  • @Deprecated
    public interface MigrationInfoProvider
    Deprecated.
    Extend JavaMigration or BaseJavaMigration instead. Will be removed in Flyway 6.0.
    Migration implementors that also implement this interface will be able to specify their version and description manually, instead of having it automatically computed.
    • Method Detail

      • getVersion

        MigrationVersion getVersion()
        Deprecated.
        Returns the version after the migration is complete.
        Returns:
        The version after the migration is complete. null for repeatable migrations.
      • getDescription

        String getDescription()
        Deprecated.
        Returns the description for the migration history.
        Returns:
        The description for the migration history. Never null.
      • isUndo

        boolean isUndo()
        Deprecated.
        Whether this is an undo migration for a previously applied versioned migration.
        Returns:
        true if it is, false if not. Always false for repeatable migrations.