Skip to content

Commit

Permalink
Update docs/src/main/asciidoc/databases-dev-services.adoc
Browse files Browse the repository at this point in the history
Co-authored-by: Yoann Rodière <[email protected]>
  • Loading branch information
Sgitario and yrodiere authored Mar 17, 2023
1 parent e75e51b commit b10e136
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docs/src/main/asciidoc/databases-dev-services.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,10 @@ When starting Dev Services (for example, in tests or in DEV mode), you will see

[IMPORTANT]
====
When mapping volumes from your local file system to keep the database data, Quarkus might wipe out all the data if you have configured your application to drop and create the schema using `quarkus.hibernate-orm.database.generation = drop-and-create` (using `quarkus.hibernate-orm.database.generation=none` or `quarkus.hibernate-orm.database.generation=validate` is recommended). Also, using Flyway to migrate your schema when starting the application will modify the database data located at your local file system.
When using Dev Services with Hibernate ORM, by default Quarkus will wipe out the database on application startup, which will wipe out the database data on your Docker host's filesystem.
Configure `quarkus.hibernate-orm.database.generation=none` or `quarkus.hibernate-orm.database.generation=validate` to avoid this behavior.
Also, using Flyway to migrate your schema when starting the application will modify the database data on your Docker hosts's file system.
====

== Database Vendor Specific Configuration
Expand Down

0 comments on commit b10e136

Please sign in to comment.