Interface MigrationResource

All Superinterfaces:
Comparable<MigrationResource>

public interface MigrationResource extends Comparable<MigrationResource>
A DB migration resource - typically a resource containing SQL.
  • Method Details

    • key

      String key()
      Return the "key" that identifies the migration.
    • comment

      String comment()
      Return the migration comment.
    • getComment

      @Deprecated default String getComment()
      Deprecated.
      Deprecated migrate to comment().
    • content

      String content()
      Return the content of the migration.
    • getContent

      @Deprecated default String getContent()
      Deprecated.
      Deprecated migrate to content().
    • compareTo

      int compareTo(MigrationResource other)
      Default ordering by version.
      Specified by:
      compareTo in interface Comparable<MigrationResource>
    • version

      MigrationVersion version()
      Return the underlying migration version.
    • getVersion

      @Deprecated default MigrationVersion getVersion()
      Deprecated.
      Deprecated migrate to version().
    • location

      String location()
      Return the resource location.
    • getLocation

      @Deprecated default String getLocation()
      Deprecated.
      Deprecated migrate to location().
    • type

      String type()
      Return the type code ("R" or "V") for this migration.
    • getType

      @Deprecated default String getType()
      Deprecated.
      Deprecated migrate to type().