001package io.ebean.migration;
002
003import java.sql.Connection;
004
005/**
006 * Interface to be implemented by Jdbc Java Migrations. By default the migration
007 * version and description will be extracted from the class name. The checksum of this migration
008 * (for validation) will also be null, unless the migration also implements the
009 * MigrationChecksumProvider, in which case it can be returned programmatically.
010 * <p>
011 * When the JdbcMigration implements ConfigurationAware, the master
012 * {@link MigrationConfig} is automatically injected upon creation, which is
013 * useful for getting placeholder and schema information.
014 *
015 * @author Roland Praml, FOCONIS AG
016 */
017public interface JdbcMigration {
018
019  /**
020   * Execute the migration using the connection.
021   */
022  void migrate(Connection connection);
023}