FLYWAY Spring Boot Properties

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.

NameDefault
Value
Description
flyway.baseline-description  
flyway.baseline-version1version to start migration
flyway.baseline-on-migrate  
flyway.check-locationfalseCheck that migration scripts location exists.
flyway.clean-on-validation-error  
flyway.enabledtrueEnable flyway.
flyway.encoding  
flyway.ignore-failed-future-migration  
flyway.init-sqls SQL statements to execute immediate to initialize when a connection obtain.
flyway.locationsclasspath:db/migrationlocations 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-prefixV 
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

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s