From b88fcbb62db800b7178303fad2fb79d6f753cf56 Mon Sep 17 00:00:00 2001 From: Reguel Wermelinger Date: Tue, 24 Oct 2023 14:55:13 +0200 Subject: [PATCH] fix: use ddl.auto=update, to not re-create already existing tables --- excel-importer-product/README.md | 2 +- excel-importer-test/config/persistence.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/excel-importer-product/README.md b/excel-importer-product/README.md index e5f36d9..abafdc5 100644 --- a/excel-importer-product/README.md +++ b/excel-importer-product/README.md @@ -21,5 +21,5 @@ Imports Excel sheets and transforms it into a full featured web application. In the project, where the Excel data should be managed: 1. Create a persistence unit under `/config/persistence.xml` -2. Add the property, to allow schema changes `hibernate.hbm2ddl.auto=create` +2. Add the property, to allow schema changes `hibernate.hbm2ddl.auto=update` 3. Set the Data source to a valid database. If there is none, set it up under `/config/databases.yaml` \ No newline at end of file diff --git a/excel-importer-test/config/persistence.xml b/excel-importer-test/config/persistence.xml index e1934e8..6cfea78 100644 --- a/excel-importer-test/config/persistence.xml +++ b/excel-importer-test/config/persistence.xml @@ -3,7 +3,7 @@ inMemory - +