Interface JdbcMigration

All Superinterfaces:
MigrationChecksumProvider

public interface JdbcMigration extends MigrationChecksumProvider
Interface to be implemented by Jdbc Java Migrations. By default the migration version and description will be extracted from the class name. The checksum of this migration (for validation) will also be null, unless the migration also implements the MigrationChecksumProvider, in which case it can be returned programmatically.

When the JdbcMigration implements ConfigurationAware, the master MigrationConfig is automatically injected upon creation, which is useful for getting placeholder and schema information.

Author:
Roland Praml, FOCONIS AG
  • Method Summary

    Modifier and Type
    Method
    Description
    default int
    Return the checksum for the given migration.
    void
    migrate(Connection connection)
    Execute the migration using the connection.