diff --git a/prisma/migrations/20260410000000_fix_evaluation_form_unique_index/migration.sql b/prisma/migrations/20260410000000_fix_evaluation_form_unique_index/migration.sql new file mode 100644 index 0000000..1107049 --- /dev/null +++ b/prisma/migrations/20260410000000_fix_evaluation_form_unique_index/migration.sql @@ -0,0 +1,5 @@ +-- Fix: the category migration used DROP CONSTRAINT to remove the old +-- (roundId, version) uniqueness rule, but it was created as a UNIQUE INDEX +-- (not a constraint) by an earlier migration, so it was never actually dropped. +-- This blocks per-category forms from sharing a version number. +DROP INDEX IF EXISTS "EvaluationForm_roundId_version_key";