/*
  Warnings:

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

*/
-- AlterEnum
BEGIN;
CREATE TYPE "HpgState_new" AS ENUM ('NOT_REQUESTED', 'ON_SCENE', 'DISPATCHED');
ALTER TABLE "Mission" ALTER COLUMN "hpgAmbulanceState" TYPE "HpgState_new" USING ("hpgAmbulanceState"::text::"HpgState_new");
ALTER TABLE "Mission" ALTER COLUMN "hpgFireEngineState" TYPE "HpgState_new" USING ("hpgFireEngineState"::text::"HpgState_new");
ALTER TABLE "Mission" ALTER COLUMN "hpgPoliceState" TYPE "HpgState_new" USING ("hpgPoliceState"::text::"HpgState_new");
ALTER TYPE "HpgState" RENAME TO "HpgState_old";
ALTER TYPE "HpgState_new" RENAME TO "HpgState";
DROP TYPE "HpgState_old";
COMMIT;
