com.googlecode.flyway.core.api.migration.jdbc
Interface JdbcMigration
public interface JdbcMigration
Interface to be implemented by Jdbc Java Migrations. By default the migration version and description will be extracted
from the class name. This can be overriden by also implementing the MigrationInfoProvider interface, in which
case it can be specified programmatically. 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.
migrate
void migrate(Connection connection)
throws Exception
- Executes this migration. The execution will automatically take place within a transaction, when the underlying
database supports it.
- Parameters:
connection - The connection to use to execute statements.
- Throws:
Exception - when the migration failed.
Copyright © 2012. All Rights Reserved.