FLYWAY is a provider of Spring Boot Data for handling database schemas operations. FLYWAY is a schema version control application to evolve your Database schema easily and reliably across all your DB instances. FLYWAY is helpful to handling database migrations or also called as schema migrations.
See Also:
Use below FLYWAY dependencies to integrate with Spring Boot.
<dependency>
<groupId>org.flywaydb</groupId>
<artifactId>flyway-core</artifactId>
</dependency>
After adding FLYWAY dependencies in your application it will automatically download and add the required other dependencies in your application and initialize with default values. You can overwrite these values through application.properties / application.yaml .
FLYWAY CONFIGURATION PROPERTIES
Spring Boot load these properties in FlywayProperties class.
Name | Default Value | Description |
flyway.baseline-description | ||
flyway.baseline-version | 1 | version to start migration |
flyway.baseline-on-migrate | ||
flyway.check-location | false | Check that migration scripts location exists. |
flyway.clean-on-validation-error | ||
flyway.enabled | true | Enable flyway. |
flyway.encoding | ||
flyway.ignore-failed-future-migration | ||
flyway.init-sqls | SQL statements to execute immediate to initialize when a connection obtain. | |
flyway.locations | classpath:db/migration | locations of migrations scripts |
flyway.out-of-order | ||
flyway.password | JDBC password In case if you want Flyway create its own DataSource | |
flyway.placeholder-prefix | ||
flyway.placeholder-replacement | ||
flyway.placeholder-suffix | ||
flyway.placeholders.* | ||
flyway.schemas | schemas to update | |
flyway.sql-migration-prefix | V | |
flyway.sql-migration-separator | ||
flyway.sql-migration-suffix | .sql | |
flyway.table | ||
flyway.url | JDBC database url to migrate. Incase not set then use the primary configured data source. | |
flyway.user | Login user of the database to migrate. | |
flyway.validate-on-migrate |
REFERENCES
https://docs.spring.io/spring-boot/docs/1.4.x/reference/html/common-application-properties.html