Skip to content

Commit 3a881db

Browse files
committed
feat(env): update environment variable placeholders for Liquibase configuration
1 parent c23863a commit 3a881db

3 files changed

Lines changed: 21 additions & 7 deletions

File tree

.env.template

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ POSTGRES_DB=your_postgres_db
44
POSTGRES_PORT=5432
55

66
# Liquibase configuration
7-
LB_CHANGELOG=src/main/resources/db/changelog/db.changelog-master.yaml
8-
LB_OUTPUT_CHANGELOG=target/generated-changelog.yaml
9-
LB_DRIVER=org.postgresql.Driver
10-
LB_SCHEMA=public
7+
LB_CHANGELOG=your_changelog_file.yaml
8+
LB_OUTPUT_CHANGELOG=your_output_changelog.yaml
9+
LB_DRIVER=your_jdbc_driver_class
10+
LB_SCHEMA=your_database_schema

mvnw

Lines changed: 14 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main/resources/application.properties

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ spring.datasource.password=${POSTGRES_PASSWORD}
1313
spring.datasource.driver-class-name=org.postgresql.Driver
1414

1515
# Liquibase configuration
16-
spring.liquibase.enabled=true
17-
spring.liquibase.change-log=classpath:db/changelog/db.changelog-master.yaml
18-
spring.liquibase.default-schema=public
16+
spring.liquibase.enabled=${SPRING_LIQUIBASE_ENABLED:true}
17+
spring.liquibase.change-log=classpath:${LB_CHANGELOG}
18+
spring.liquibase.default-schema=${LB_SCHEMA}

0 commit comments

Comments
 (0)