From 834934bde8ee3cb893ef78301a8ddc3c29d45b08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Marulanda=20P?= Date: Sat, 16 Nov 2024 16:11:36 +0100 Subject: [PATCH] Properties - Agregado variable "FLYWAY_DEFAULT_SCHEMA". --- src/main/resources/application-production.properties | 1 + src/main/resources/application.properties | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/resources/application-production.properties b/src/main/resources/application-production.properties index 4850490..96ba547 100644 --- a/src/main/resources/application-production.properties +++ b/src/main/resources/application-production.properties @@ -13,5 +13,6 @@ spring.jpa.show-sql=false spring.jpa.properties.hibernate.format_sql=false spring.flyway.locations=classpath:db/migration/{vendor} spring.flyway.baseline-on-migrate=true +spring.flyway.default-schema=${FLYWAY_DEFAULT_SCHEMA} # Application properties app.security.jwt.secret=${APP_SECURITY_JWT_SECRET} diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index b51b978..22c2a25 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -16,7 +16,7 @@ spring.jpa.hibernate.ddl-auto=validate spring.jpa.show-sql=true spring.jpa.properties.hibernate.format_sql=true spring.flyway.locations=classpath:db/migration/{vendor},classpath:dev/db/migration/{vendor} -spring.flyway.default-schema=despensa_app +spring.flyway.default-schema=${FLYWAY_DEFAULT_SCHEMA:despensa_app} # Springdoc - OpenAPI specification properties springdoc.api-docs.path=/api-docs springdoc.default-produces-media-type=application/json