/*
  Warnings:

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

*/
-- AlterEnum
BEGIN;
CREATE TYPE "public"."LegislationType_new" AS ENUM ('ACT', 'REGULATIONS', 'CORRIGENDA', 'BILLS');
ALTER TABLE "public"."LegislationItem" ALTER COLUMN "type" TYPE "public"."LegislationType_new" USING ("type"::text::"public"."LegislationType_new");
ALTER TYPE "public"."LegislationType" RENAME TO "LegislationType_old";
ALTER TYPE "public"."LegislationType_new" RENAME TO "LegislationType";
DROP TYPE "public"."LegislationType_old";
COMMIT;
