diff --git a/bom/application/pom.xml b/bom/application/pom.xml index b306141de834a..c35fc4298fd36 100644 --- a/bom/application/pom.xml +++ b/bom/application/pom.xml @@ -94,7 +94,7 @@ 3.12.0 1.15 1.5.1 - 5.5.2.Final + 5.5.3.Final 1.0.0.CR7 6.2.0.Final 6.0.4.Final diff --git a/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/FastBootHibernatePersistenceProvider.java b/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/FastBootHibernatePersistenceProvider.java index 34858d5c20b04..e57ed4a5f33dd 100644 --- a/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/FastBootHibernatePersistenceProvider.java +++ b/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/FastBootHibernatePersistenceProvider.java @@ -340,6 +340,9 @@ private static void injectRuntimeConfiguration(String persistenceUnitName, runtimeSettingsBuilder.put(AvailableSettings.HBM2DDL_HALT_ON_ERROR, "true"); } + //Never append on existing scripts: + runtimeSettingsBuilder.put(AvailableSettings.HBM2DDL_SCRIPTS_CREATE_APPEND, "false"); + runtimeSettingsBuilder.put(AvailableSettings.HBM2DDL_SCRIPTS_ACTION, persistenceUnitConfig.scripts.generation.generation);