Skip to content

Commit

Permalink
fix: use ddl.auto=update, to not re-create already existing tables
Browse files Browse the repository at this point in the history
  • Loading branch information
ivy-rew committed Oct 24, 2023
1 parent 47e47cf commit b88fcbb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion excel-importer-product/README.md
Expand Up @@ -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`
2 changes: 1 addition & 1 deletion excel-importer-test/config/persistence.xml
Expand Up @@ -3,7 +3,7 @@
<persistence-unit name="testing">
<non-jta-data-source>inMemory</non-jta-data-source>
<properties>
<property name="hibernate.hbm2ddl.auto" value="create"/>
<property name="hibernate.hbm2ddl.auto" value="create-drop"/>
<property name="hibernate.show-sql" value="true"/>
</properties>
</persistence-unit>
Expand Down

0 comments on commit b88fcbb

Please sign in to comment.