From 3fcea268a985d6b24fd114f21e63da96ef51c3d6 Mon Sep 17 00:00:00 2001 From: hitanshu310 Date: Mon, 16 Feb 2026 01:10:31 +0530 Subject: [PATCH] Update JPA config to use update mode and disable SQL init --- src/main/resources/application-local.properties | 1 + src/main/resources/application-prod.properties | 3 ++- src/main/resources/application-test.properties | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/resources/application-local.properties b/src/main/resources/application-local.properties index 60ec5d5..0bdba38 100644 --- a/src/main/resources/application-local.properties +++ b/src/main/resources/application-local.properties @@ -9,4 +9,5 @@ debug=true spring.jpa.hibernate.ddl-auto=update spring.jpa.show-sql=true +spring.sql.init.mode=never spring.datasource.url=jdbc:postgresql://localhost:5432/cftunnel diff --git a/src/main/resources/application-prod.properties b/src/main/resources/application-prod.properties index cb15c36..09de097 100644 --- a/src/main/resources/application-prod.properties +++ b/src/main/resources/application-prod.properties @@ -9,4 +9,5 @@ spring.datasource.driver-class-name=org.postgresql.Driver # JPA Configuration spring.jpa.hibernate.ddl-auto=update spring.jpa.show-sql=false -spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect \ No newline at end of file +spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect +spring.sql.init.mode=never \ No newline at end of file diff --git a/src/main/resources/application-test.properties b/src/main/resources/application-test.properties index b257503..4d768ec 100644 --- a/src/main/resources/application-test.properties +++ b/src/main/resources/application-test.properties @@ -10,3 +10,4 @@ spring.datasource.driver-class-name=org.postgresql.Driver spring.jpa.hibernate.ddl-auto=update spring.jpa.show-sql=true spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect +spring.sql.init.mode=never