Interface SpincastFlywayFactory


public interface SpincastFlywayFactory
Entry point for running a Spincast Flyway migration.
  • Method Details

    • createMigrationContext

      SpincastFlywayMigrationContext createMigrationContext(DataSource dataSource, String migrationsPackage)
      Creates a context for the migrations of a specific DataSource. 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 specific DataSource 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());