Class FlywayMigrator

java.lang.Object
io.micronaut.flyway.FlywayMigrator

@Singleton public class FlywayMigrator extends Object
Public access to invoke Flyway migrations when DataSource onCreate behaviour is not desired.

The Flyway configuration should be: flyway.enabled = true flyway.datasources.*.enabled = false

This ensures that Flyway won't run automatically the migrations. The following service can then be injected later and execute run to execute the migrations based on a given FlywayConfigurationProperties.

Since:
3.6.0
Author:
Iván López