diff --git a/docs/deployment.md b/docs/deployment.md index 56bb57d..c49453d 100644 --- a/docs/deployment.md +++ b/docs/deployment.md @@ -112,6 +112,12 @@ Run the three in order before the new images go live: the new services-counter w Run both before the new images go live: the new services-counter reads the new `event_lead` columns on every lead query and fails without them. Both need a user that may create tables. `99-rollback.sql` in the same folder undoes them and deletes the codes, the notices and the consent records. +| File | What it does | +|---|---| +| `openspec/changes/archive/2026-12-01-uppercase-company-codes/sql/01-uppercase-codes.sql` | Turns every company code and every staff login name to capitals (`ins` becomes `INS`, `sales9@cv` becomes `sales9@CV`). Safe to run twice. | + +Run it when the new services-system and mobile-api go live. Staff who are signed in must sign in again. Sign-in still ignores case, so staff may keep typing `ins` or `cv`. `99-rollback.sql` in the same folder turns codes and login names back to lowercase. + **Review the privacy notice before go-live.** The seeded text is a starting template written for the PDPA, not legal advice. INS and CV should each have theirs checked; a super admin changes it under **Companies → Privacy notice**. A company with no notice has no working QR codes. **Database user:** diff --git a/openspec/changes/uppercase-company-codes/tasks.md b/openspec/changes/uppercase-company-codes/tasks.md index a2b5d6f..677b693 100644 --- a/openspec/changes/uppercase-company-codes/tasks.md +++ b/openspec/changes/uppercase-company-codes/tasks.md @@ -27,7 +27,7 @@ Serial. One implementer, in this session. ## 4. Release -- [ ] 4.1 `docs/deployment.md` notes the SQL and that staff sign in again; Playwright: Companies shows `INS` and `CV`, sign in as `sales9` with company `cv` works. +- [x] 4.1 `docs/deployment.md` notes the SQL and that staff sign in again; Playwright: Companies shows `INS` and `CV`, sign in as `sales9` with company `cv` works. - Depends on: 3.1 - Scope: `docs/deployment.md`, `openspec/changes/uppercase-company-codes/tasks.md` - Verify: the 2.1 and 3.1 verifies.