Interface Migration.MigrationAction

Enclosing interface:
Migration
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface Migration.MigrationAction

Functional interface for migration actions.

This interface allows migrations to be defined using lambda expressions with the Migration.of(int, String, Migration.MigrationAction) factory methods.

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Performs the migration.
  • Method Details

    • migrate

      void migrate(MigrationContext context)
      Performs the migration.
      Parameters:
      context - the migration context
      Throws:
      MigrationException - if the migration fails