Package org.spincast.plugins.flywayutils
Interface SpincastFlywayFactory
public interface SpincastFlywayFactory
Entry point for running a Spincast Flyway migration.
-
Method Summary
Modifier and TypeMethodDescriptioncreateMigrationContext
(DataSource dataSource, String migrationsPackage) Creates a context for the migrations of a specificDataSource
.createMigrationContext
(DataSource dataSource, String schema, String migrationsPackage) Creates a context for the migrations of a specificDataSource
and schema.
-
Method Details
-
createMigrationContext
SpincastFlywayMigrationContext createMigrationContext(DataSource dataSource, String migrationsPackage) Creates a context for the migrations of a specificDataSource
. You have to specify the package where the migration classes are located for that DataSource. You can use one of the class to get this package name in a safe way:createMigrationContext(maintaSource, M_2018_09_18_00.class.getPackage().getName());
-
createMigrationContext
SpincastFlywayMigrationContext createMigrationContext(DataSource dataSource, String schema, String migrationsPackage) Creates a context for the migrations of a specificDataSource
and schema. You have to specify the package where the migration classes are located for that DataSource. You can use one of the class to get this package name in a safe way:createMigrationContext(maintaSource, "public", M_2018_09_18_00.class.getPackage().getName());
-