Skip to content

Commit

Permalink
Update maintainer guide
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasCwy committed Apr 8, 2024
1 parent 87a0c27 commit 671b720
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions maintainer-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -157,13 +157,13 @@ Schema migration is necessary when tables/ columns are amended/ added. Refer to

**Role: RL**
* Follow dev guide to create new changelog with name `db.changelog-<release_number>.xml`. The previous release is the base and the new release is the target branch.
* Ensure new changelog is in `src/main/resources/db/changelog` and add it as the last entry in `src/main/resources/db/changelog/db.changelog-root.xml`
* Follow dev guide on targeting changelog created and run `./gradlew liquibaseTag -PliquibaseCommandValue=<release-num>` to tag changelog to current release
* Manually add a new changeset to the bottom of changelog file, to tag the database (Refer to [official liquibase documentation](https://docs.liquibase.com/change-types/tag-database.html)).
* Ensure new changelog is in `src/main/resources/db/changelog` and add it as the last entry in `src/main/resources/db/changelog/db.changelog-root.xml` (note changelogs are executed alphanumerically - careful if adding suffixes)
* Notify PM of schema change for them to run on production database.

**Role: PM**
* In `gradle.properties` amend the fields `liquibaseDbUrl`, `liquibaseUsername` and `liquibasePassword` to match the IP and the username and password for the role used to login into Cloud SQL
* Run `./gradlew liquibaseUpdateToTagSql -PliquibaseCommandValue=<release-num>`
* Run `./gradlew liquibaseUpdateToTag -PliquibaseCommandValue="<release-num>"`

### Data migration

Expand Down

0 comments on commit 671b720

Please sign in to comment.