/*
  Warnings:

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

*/
-- AlterEnum
BEGIN;
CREATE TYPE "GeneralRequestStatus_new" AS ENUM ('TO_DO', 'IN_PROGRESS', 'DONE_BY_TECH_TEAM', 'CONFIRMED');
ALTER TABLE "tech_request" ALTER COLUMN "status" DROP DEFAULT;
ALTER TABLE "tech_request" ALTER COLUMN "status" TYPE "GeneralRequestStatus_new" USING ("status"::text::"GeneralRequestStatus_new");
ALTER TYPE "GeneralRequestStatus" RENAME TO "GeneralRequestStatus_old";
ALTER TYPE "GeneralRequestStatus_new" RENAME TO "GeneralRequestStatus";
DROP TYPE "GeneralRequestStatus_old";
ALTER TABLE "tech_request" ALTER COLUMN "status" SET DEFAULT 'TO_DO';
COMMIT;
