From 671b720d54d7a44f587a5057ae1c28cf0b91ccc3 Mon Sep 17 00:00:00 2001 From: Nicolas Chang <25302138+NicolasCwy@users.noreply.github.com> Date: Mon, 8 Apr 2024 17:08:15 +0800 Subject: [PATCH] Update maintainer guide --- maintainer-guide.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/maintainer-guide.md b/maintainer-guide.md index cee2a73..efe57cc 100644 --- a/maintainer-guide.md +++ b/maintainer-guide.md @@ -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-.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=` 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=` +* Run `./gradlew liquibaseUpdateToTag -PliquibaseCommandValue=""` ### Data migration