Interface Migration

All Known Subinterfaces:
JavaBasedMigration

public interface Migration
Base interface for any migration.
Since:
0.0.1
Author:
Michael J. Simons
  • Method Details

    • getVersion

      MigrationVersion getVersion()
      Returns:
      The version.
    • getDescription

      String getDescription()
      Returns:
      Some description.
    • getSource

      String getSource()
      Returns:
      Something that describes the source of this migration.
    • getChecksum

      default Optional<String> getChecksum()
      Returns:
      Possible checksum of the migration.
    • apply

      void apply(MigrationContext context)
      Implement your migration code here.
      Parameters:
      context - The migrations' context.
      Throws:
      MigrationsException - In case anything happens, wrap your exception or create a new one