Class MigrationVersion

    • Field Detail

      • EMPTY

        public static final MigrationVersion EMPTY
        Version for an empty schema.
      • CURRENT

        public static final MigrationVersion CURRENT
        Current version. Only a marker. For the real version use Flyway.info().current() instead.
    • Method Detail

      • fromVersion

        public static MigrationVersion fromVersion​(String version)
        Factory for creating a MigrationVersion from a version String
        Parameters:
        version - The version String. The value current will be interpreted as MigrationVersion.CURRENT, a marker for the latest version that has been applied to the database.
        Returns:
        The MigrationVersion
      • toString

        public String toString()
        Overrides:
        toString in class Object
        Returns:
        The textual representation of the version.
      • getVersion

        public String getVersion()
        Returns:
        Numeric version as String
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object