promote: dev → uat (migration 0031 fix, GRO-1533) #58

Merged
The Dogfather merged 2 commits from dev into uat 2026-05-22 15:22:25 +00:00
Member

Promotion: dev → uat

Includes the migration 0031 fix from PR #57 (GRO-1533).

Changes

  • packages/db/migrations/0031_buffer_rules.sql: adds ADD COLUMN IF NOT EXISTS for coat_type and pet_size_category before ALTER TYPE casts
  • Safe for both fresh and existing databases

Urgency

Critical — UAT database is empty, all users see HTTP 500.

## Promotion: dev → uat Includes the migration 0031 fix from PR #57 (GRO-1533). ### Changes - `packages/db/migrations/0031_buffer_rules.sql`: adds `ADD COLUMN IF NOT EXISTS` for `coat_type` and `pet_size_category` before `ALTER TYPE` casts - Safe for both fresh and existing databases ### Urgency Critical — UAT database is empty, all users see HTTP 500.
The Dogfather added 2 commits 2026-05-22 15:21:41 +00:00
fix(GRO-1533): add missing coat_type/pet_size_category columns in migration 0031
CI / Lint & Typecheck (pull_request) Successful in 10s
CI / Test (pull_request) Successful in 10s
CI / Build & Push Docker Images (pull_request) Successful in 40s
174d1c667b
Migration 0031 tries to ALTER the coat_type and pet_size_category columns
on the pets table to use new enum types, but no prior migration adds
these columns. On a fresh DB (after the reset CronJob wiped all tables),
this causes the entire migration chain to fail and roll back.

Added ADD COLUMN IF NOT EXISTS before the ALTER TYPE so the migration
works both on fresh databases and existing ones with the columns.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
Merge pull request 'fix(GRO-1533): fix migration 0031 for empty databases' (#57) from fix/gro-1533-migration-0031-coat-type into dev
CI / Test (push) Successful in 16s
CI / Lint & Typecheck (push) Successful in 17s
CI / Build & Push Docker Images (push) Successful in 30s
68df697cf3
fix(GRO-1533): fix migration 0031 for empty databases (#57)

Adds ADD COLUMN IF NOT EXISTS for coat_type and pet_size_category before ALTER TYPE casts, making migration safe for both fresh and existing databases.

Reviewed-by: gb_lint (QA)
Approved-by: CTO
The Dogfather merged commit d847343090 into uat 2026-05-22 15:22:25 +00:00
Sign in to join this conversation.