Skip to content

Commit 0171ed2

Browse files
committed
Polish "Document comments in SQL for database initialization"
See gh-38385
1 parent 578d043 commit 0171ed2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

spring-boot-project/spring-boot-docs/src/docs/asciidoc/howto/data-initialization.adoc

+2-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ While we do not recommend using multiple data source initialization technologies
6262
This will defer data source initialization until after any `EntityManagerFactory` beans have been created and initialized.
6363
`schema.sql` can then be used to make additions to any schema creation performed by Hibernate and `data.sql` can be used to populate it.
6464

65-
NOTE: When including comments in your SQL file, it is advisable to use `--` for single-line comments and `/++*++` and `++*++/` for block comments. Be cautious when using other comment formats, as they may lead to the omission of certain SQL statements during parsing.
65+
NOTE: The initialization scripts support `--` for single line comments and `/++*++ ++*++/` for block comments.
66+
Other comment formats are not supported.
6667

6768
If you are using a <<howto#howto.data-initialization.migration-tool,Higher-level Database Migration Tool>>, like Flyway or Liquibase, you should use them alone to create and initialize the schema.
6869
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.

0 commit comments

Comments
 (0)