/*
  Warnings:

  - The values [DRAFT] on the enum `RgcDecisionStatus` will be removed. If these variants are still used in the database, this will fail.

*/
-- AlterEnum
BEGIN;
CREATE TYPE "RgcDecisionStatus_new" AS ENUM ('NOT_ADDRESSED', 'IN_PROGRESS', 'SOLVED');
ALTER TABLE "public"."plenary_rgc_decisions" ALTER COLUMN "status" DROP DEFAULT;
ALTER TABLE "plenary_rgc_decisions" ALTER COLUMN "status" TYPE "RgcDecisionStatus_new" USING ("status"::text::"RgcDecisionStatus_new");
ALTER TYPE "RgcDecisionStatus" RENAME TO "RgcDecisionStatus_old";
ALTER TYPE "RgcDecisionStatus_new" RENAME TO "RgcDecisionStatus";
DROP TYPE "public"."RgcDecisionStatus_old";
ALTER TABLE "plenary_rgc_decisions" ALTER COLUMN "status" SET DEFAULT 'NOT_ADDRESSED';
COMMIT;

-- AlterTable
ALTER TABLE "plenary_rgc_decisions" ALTER COLUMN "status" SET DEFAULT 'NOT_ADDRESSED';
