Skip to content

Commit

Permalink
Add buildscript dependency and rename params
Browse files Browse the repository at this point in the history
  • Loading branch information
emyl3 committed Nov 12, 2024
1 parent 09c7c5a commit 77d47fc
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/testDBActions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ jobs:
- name: Run liquibase clear checksums
run: docker compose -f docker-compose.db-liquibase-action.yml run --env "LIQUIBASE_ACTION=clear-checksums" db_liquibase_action
- name: Test rolling back on last 20 migrations
run: docker compose -f docker-compose.db-liquibase-action.yml run --entrypoint "gradle liquibaseRollbackCount -PliquibaseCommandValue=20" db_liquibase_action
run: docker compose -f docker-compose.db-liquibase-action.yml run --entrypoint "gradle liquibaseRollbackCount -PliquibaseCount=20" db_liquibase_action
11 changes: 9 additions & 2 deletions backend/build.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
buildscript {
dependencies {
classpath 'org.liquibase:liquibase-core:4.29.1'
}
}

plugins {
id 'org.springframework.boot' version '3.1.7'
id 'org.liquibase.gradle' version '3.0.1'
Expand Down Expand Up @@ -158,7 +164,8 @@ dependencies {

implementation 'commons-validator:commons-validator:1.9.0'

// Needed for Liquibase Gradle Plugin 2.2.0
// Needed for Liquibase Gradle Plugin
liquibaseRuntime 'org.liquibase:liquibase-core:4.29.1'
liquibaseRuntime 'info.picocli:picocli:4.7.5'
}

Expand Down Expand Up @@ -211,7 +218,7 @@ liquibase {
defaultSchemaName defaultSchema
classpath "src/main/resources"
// this shadows application.yaml: should probably be in a shared properties file
changeLogParameters([noPhiUsername: "simple_report_no_phi", noPhiPassword: noPhiPassword])
changelogParameters([noPhiUsername: "simple_report_no_phi", noPhiPassword: noPhiPassword])
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion backend/db_liquibase_action.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ case "${action}" in

rollback)
echo "Rolling back to tag: ${rollback_tag}"
gradle liquibaseRollback -PliquibaseCommandValue="${rollback_tag}"
gradle liquibaseRollback -PliquibaseTag="${rollback_tag}"
;;

*) # default condition
Expand Down

0 comments on commit 77d47fc

Please sign in to comment.