Skip to content

Commit

Permalink
Disable AvailableSettings.HBM2DDL_SCRIPTS_CREATE_APPEND
Browse files Browse the repository at this point in the history
(cherry picked from commit 7a7d3f3)
  • Loading branch information
Sanne authored and gsmet committed Jun 22, 2021
1 parent c507390 commit db377c3
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit db377c3

Please sign in to comment.