From bfe250e5d33aafe384604f01f7823ce8265e6a84 Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Wed, 5 Aug 2020 18:14:39 +0100 Subject: [PATCH] Clarify docs on schema and data SQL scripts with Flyway and Liquibase Closes gh-20920 --- .../spring-boot-docs/src/main/asciidoc/howto.adoc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/spring-boot-project/spring-boot-docs/src/main/asciidoc/howto.adoc b/spring-boot-project/spring-boot-docs/src/main/asciidoc/howto.adoc index bdef74f54c..684dda5736 100644 --- a/spring-boot-project/spring-boot-docs/src/main/asciidoc/howto.adoc +++ b/spring-boot-project/spring-boot-docs/src/main/asciidoc/howto.adoc @@ -1967,9 +1967,8 @@ Make sure to disable `spring.jpa.hibernate.ddl-auto` if you use `schema.sql`. spring.jpa.hibernate.ddl-auto=none ---- -If you are using a <>, like Flyway or Liquibase, you cannot use basic SQL scripts to create and initialize the schema. -In this situation, if `schema.sql` and `data.sql` are present, they will be ignored. -It is not possible to use a Database Migration Tool to manage schema creation, and a basic SQL script to initialize it. +If you are using a <>, like Flyway or Liquibase, you should use them alone to create and initialize the schema. +Using the basic `schema.sql` and `data.sql` scripts alongside Flyway or Liquibase is not recommended and support will be removed in a future release. ==== By default, Spring Boot enables the fail-fast feature of the Spring JDBC initializer.