com.google.code.flyway.core
Interface Migration
- All Known Implementing Classes:
- BaseJavaMigration, BaseMigration, SqlMigration
public interface Migration
A migration of a single version of the schema.
- Author:
- Axel Fontaine
getVersion
SchemaVersion getVersion()
- Returns:
- The schema version after the migration is complete.
getState
MigrationState getState()
- Returns:
- The state of this migration.
getExecutionTime
long getExecutionTime()
- Returns:
- The time (in ms) it took to execute.
getScriptName
java.lang.String getScriptName()
- Returns:
- The script name for the migration history.
migrate
void migrate(org.springframework.jdbc.core.simple.SimpleJdbcTemplate jdbcTemplate)
- Performs the migration. The migration state and the execution time are updated accordingly.
- Parameters:
jdbcTemplate - To execute the migration statements.
Copyright © 2010. All Rights Reserved.