Revert "Fix detection logic for embedded databases"
This reverts commit c4a5a34702.
See gh-23721
This commit is contained in:
@@ -1927,8 +1927,8 @@ This is controlled through two external properties:
|
||||
You can set `spring.jpa.hibernate.ddl-auto` explicitly and the standard Hibernate property values are `none`, `validate`, `update`, `create`, and `create-drop`.
|
||||
Spring Boot chooses a default value for you based on whether it thinks your database is embedded.
|
||||
It defaults to `create-drop` if no schema manager has been detected or `none` in all other cases.
|
||||
An embedded database is detected by looking at the `Connection` type and JDBC url.
|
||||
`hsqldb`, `h2`, and `derby` are candidates, and others are not.
|
||||
An embedded database is detected by looking at the `Connection` type.
|
||||
`hsqldb`, `h2`, and `derby` are embedded, and others are not.
|
||||
Be careful when switching from in-memory to a '`real`' database that you do not make assumptions about the existence of the tables and data in the new platform.
|
||||
You either have to set `ddl-auto` explicitly or use one of the other mechanisms to initialize the database.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user