/*
  Warnings:

  - The values [Draft,Sent] on the enum `PlenaryStatus` will be removed. If these variants are still used in the database, this will fail.
  - The values [Draft,In Progress,Solved] on the enum `RgcDecisionStatus` will be removed. If these variants are still used in the database, this will fail.

*/
-- AlterEnum
BEGIN;
CREATE TYPE "PlenaryStatus_new" AS ENUM ('DRAFT', 'SENT');
ALTER TABLE "public"."plenaries" ALTER COLUMN "status" DROP DEFAULT;
ALTER TABLE "plenaries" ALTER COLUMN "status" TYPE "PlenaryStatus_new" USING ("status"::text::"PlenaryStatus_new");
ALTER TYPE "PlenaryStatus" RENAME TO "PlenaryStatus_old";
ALTER TYPE "PlenaryStatus_new" RENAME TO "PlenaryStatus";
DROP TYPE "public"."PlenaryStatus_old";
ALTER TABLE "plenaries" ALTER COLUMN "status" SET DEFAULT 'DRAFT';
COMMIT;

-- AlterEnum
BEGIN;
CREATE TYPE "RgcDecisionStatus_new" AS ENUM ('DRAFT', '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 'DRAFT';
COMMIT;

-- AlterTable
ALTER TABLE "plenaries" ALTER COLUMN "status" SET DEFAULT 'DRAFT';

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