fix: add missing 'short'/'medium'/'silky' to coat_type enum (GRO-1971)
Migration 0031_buffer_rules.sql created coat_type enum with values
('smooth', 'double', 'wire', 'curly', 'long', 'hairless') but omitted
'short', 'medium', and 'silky' which are defined in schema.ts and
required by seed.ts.
Added 0035_add_missing_coat_type_values.sql to add the missing values
using ALTER TYPE ... ADD VALUE IF NOT EXISTS.
This resolves the UAT seed failure:
PostgresError: invalid input value for enum coat_type: "short"
code: '22P02' routine: 'enum_in' (packages/db/src/seed.ts)
Dev→UAT SDLC: QA (Lint Roller) review, then CTO review.
Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
@@ -246,6 +246,13 @@
|
||||
"when": 1751140800000,
|
||||
"tag": "0034_extend_pet_profile_columns",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 35,
|
||||
"version": "7",
|
||||
"when": 1751480000000,
|
||||
"tag": "0035_add_missing_coat_type_values",
|
||||
"breakpoints": true
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user