public interface SpringJdbcMigration
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.
When the JdbcMigration implements ConfigurationAware
,
the master FlywayConfiguration
is automatically injected upon creation,
which is especially useful for getting placeholder and schema information.
BaseSpringJdbcMigration
instead.Modifier and Type | Method and Description |
---|---|
void |
migrate(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate)
Executes this migration.
|
void migrate(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate) throws Exception
jdbcTemplate
- The jdbcTemplate to use to execute statements.Exception
- when the migration failed.Copyright © 2017. All rights reserved.