mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-09-03 04:26:12 +08:00
Merge pull request #38385 from PENEKhun
* pr/38385: Polish "Document comments in SQL for database initialization" Document comments in SQL for database initialization Closes gh-38385
This commit is contained in:
commit
a6346fba08
@ -62,6 +62,9 @@ While we do not recommend using multiple data source initialization technologies
|
|||||||
This will defer data source initialization until after any `EntityManagerFactory` beans have been created and initialized.
|
This will defer data source initialization until after any `EntityManagerFactory` beans have been created and initialized.
|
||||||
`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.
|
`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.
|
||||||
|
|
||||||
|
NOTE: The initialization scripts support `--` for single line comments and `/++*++ ++*++/` for block comments.
|
||||||
|
Other comment formats are not supported.
|
||||||
|
|
||||||
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.
|
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.
|
||||||
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.
|
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.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user