Skip to content

Commit 87a0c27

Browse files
committed
Update liquibase instructions
1 parent bf4fbcb commit 87a0c27

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

maintainer-guide.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -153,16 +153,17 @@ Since the detail of such vulnerability cannot be disclosed until it is fixed, an
153153
The complete details can be filled in just before merging and/or after the fix is deployed.
154154

155155
### Schema migration
156-
Schema migration is necessary when tables/ columns have to be added
156+
Schema migration is necessary when tables/ columns are amended/ added. Refer to TEAMMATES repo [docs/schema-migration.md](https://github.com/TEAMMATES/teammates/tree/master/docs/schema-migration.md)
157157

158158
**Role: RL**
159-
* Consolidate all changelogs in the current release folder in `src/main/resources/db/changelog` into a single changelog to put into `src/main/resources/db/changelog`
159+
* 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.
160+
* 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`
160161
* Follow dev guide on targeting changelog created and run `./gradlew liquibaseTag -PliquibaseCommandValue=<release-num>` to tag changelog to current release
161-
* Create new folder in `src/main/resources/db/changelog` with the next version as file name
162+
* Notify PM of schema change for them to run on production database.
162163

163164
**Role: PM**
164-
* 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 to the Cloud SQL
165-
* Run `./gradlew liquibaseTag -PliquibaseCommandValue=<release-num>`
165+
* 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
166+
* Run `./gradlew liquibaseUpdateToTagSql -PliquibaseCommandValue=<release-num>`
166167

167168
### Data migration
168169

0 commit comments

Comments
 (0)