fix: add missing coat_type enum values (GRO-1971) #118
Reference in New Issue
Block a user
Delete Branch "fix/gro-1971-coat-type-enum-missing-short"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
4911ad803atoff1de7f77dMigration 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>ff1de7f77dto707e74e6e1