Spring Flyway Support: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 15: Line 15:
{{External|https://docs.spring.io/spring-boot/docs/current/reference/html/howto-database-initialization.html#howto-execute-flyway-database-migrations-on-startup}}
{{External|https://docs.spring.io/spring-boot/docs/current/reference/html/howto-database-initialization.html#howto-execute-flyway-database-migrations-on-startup}}


<font color=darkgray>TODO</font>
 
Flyway database migration can be automatically triggered on startup if "org.flywaydb:flyway-core" dependency is present in the application's classpath.


=Organizatorium=
=Organizatorium=

Revision as of 20:46, 4 December 2018

Internal

Overview

TODO

  • Understand how main/resource/db/migration/V1.0_init.sql drives schema creation with Spring Data JPA.

Database Migration on Startup

https://docs.spring.io/spring-boot/docs/current/reference/html/howto-database-initialization.html#howto-execute-flyway-database-migrations-on-startup


Flyway database migration can be automatically triggered on startup if "org.flywaydb:flyway-core" dependency is present in the application's classpath.

Organizatorium

  • Disable flyway support:

How to Enable Flyway

How to Disable Flyway