Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 2fee69b61c |
@@ -0,0 +1,18 @@
|
||||
-- Migration: 0035_extend_pet_enums.sql
|
||||
-- GRO-1979: Adds missing enum values for coat_type (short/medium/silky) and
|
||||
-- pet_size_category (extra_large) that were captured in schema snapshots but
|
||||
-- never applied to the DB because 0034 did not include ALTER TYPE ADD VALUE.
|
||||
|
||||
-- Postgres restriction: ALTER TYPE ADD VALUE cannot run inside a transaction block.
|
||||
-- We deliberately do NOT wrap this in BEGIN...COMMIT so drizzle can apply it
|
||||
-- as a standalone statement outside any implicit transaction.
|
||||
|
||||
-- ─── Extend coat_type enum ────────────────────────────────────────────────
|
||||
|
||||
ALTER TYPE "coat_type" ADD VALUE IF NOT EXISTS 'short';
|
||||
ALTER TYPE "coat_type" ADD VALUE IF NOT EXISTS 'medium';
|
||||
ALTER TYPE "coat_type" ADD VALUE IF NOT EXISTS 'silky';
|
||||
|
||||
-- ─── Extend pet_size_category enum ────────────────────────────────────────
|
||||
|
||||
ALTER TYPE "pet_size_category" ADD VALUE IF NOT EXISTS 'extra_large';
|
||||
@@ -246,6 +246,13 @@
|
||||
"when": 1751140800000,
|
||||
"tag": "0034_extend_pet_profile_columns",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 35,
|
||||
"version": "7",
|
||||
"when": 1751300000000,
|
||||
"tag": "0035_extend_pet_enums",
|
||||
"breakpoints": true
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user