Interface JdbcMigration
-
- All Known Implementing Classes:
BaseJdbcMigration
@Deprecated public interface JdbcMigration
Deprecated.Extend JavaMigration or BaseJavaMigration instead. Will be removed in Flyway 6.0.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 overridden by also implementing theMigrationInfoProviderinterface, in which case it can be specified programmatically. The checksum of this migration (for validation) will also be null, unless the migration also implements theMigrationChecksumProvider, in which case it can be returned programmatically.When the JdbcMigration implements
It is encouraged not to implement this interface directly and subclassConfigurationAware, the masterFlywayConfigurationis automatically injected upon creation, which is especially useful for getting placeholder and schema information.JdbcMigrationinstead.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description voidmigrate(Connection connection)Deprecated.Executes this migration.
-
-
-
Method Detail
-
migrate
void migrate(Connection connection) throws Exception
Deprecated.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.
-
-