ac222222222222
ac222222222222
DTDrizzle Team
Created by ac222222222222 on 1/21/2025 in #help
drizzle-kit generate keeps trying to recreate enum value that already exists
I recently created a migration using drizzle-kit generate after replacing a pg enum value. the generated migration was incorrect as it added the new value but never removed the old one. Hence, I manually edited the migration to look like this: ALTER TYPE job_status RENAME VALUE 'completed' TO 'successful'; however, now whenever I run generate for subsequent migrations, it keeps trying to create the new enum value: ALTER TYPE "job_status" ADD VALUE 'successful';--> statement-breakpoint is there a way to stop it from doing so?
3 replies