Skip to content

Commit

Permalink
Disable AvailableSettings.HBM2DDL_SCRIPTS_CREATE_APPEND
Browse files Browse the repository at this point in the history
  • Loading branch information
Sanne committed Jun 22, 2021
1 parent b5f0266 commit 7a7d3f3
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 7a7d3f3

Please sign in to comment.