From 526d3cca2adce1fbd6b50006824a8b7788d2f7b0 Mon Sep 17 00:00:00 2001 From: Jason Loux Date: Wed, 4 Dec 2024 13:39:46 -0500 Subject: [PATCH] Solve dummy data migration issues --- src/main/resources/application.properties.template | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/main/resources/application.properties.template b/src/main/resources/application.properties.template index 96578b87..15d30ca2 100644 --- a/src/main/resources/application.properties.template +++ b/src/main/resources/application.properties.template @@ -7,9 +7,13 @@ spring.datasource.password=EXAMPLE spring.datasource.driver-class-name=org.postgresql.Driver -spring.jpa.hibernate.ddl-auto=create-drop +spring.jpa.hibernate.ddl-auto=validate spring.jpa.show-sql=false -spring.jpa.properties.hibernate.hbm2ddl.import_files=sql/crops.sql, sql/lists.sql, sql/locations.sql, sql/people.sql, sql/programs.sql, sql/trials.sql, sql/seasons.sql, sql/studies.sql, sql/breeding_methods.sql, sql/germplasm.sql, sql/attribute_defs.sql, sql/attribute_values.sql, sql/seed_lots.sql, sql/observation_units.sql, sql/crosses.sql, sql/pedigree.sql, sql/events.sql, sql/images.sql, sql/observation_variables.sql, sql/observations.sql, sql/samples.sql, sql/allele_calls.sql, sql/genome_maps.sql, sql/references.sql, sql/vendor.sql + +spring.flyway.enabled=true +spring.flyway.locations=classpath:db/migration,classpath:db/sql +spring.flyway.schemas=public +spring.flyway.baselineOnMigrate=true spring.mvc.dispatch-options-request=true