/*
  Warnings:

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

*/
-- AlterEnum
BEGIN;
CREATE TYPE "Role_new" AS ENUM ('PLAYER', 'LIDER', 'ORGANIZER');
ALTER TABLE "users" ALTER COLUMN "user_role" DROP DEFAULT;
ALTER TABLE "users" ALTER COLUMN "user_role" TYPE "Role_new" USING ("user_role"::text::"Role_new");
ALTER TYPE "Role" RENAME TO "Role_old";
ALTER TYPE "Role_new" RENAME TO "Role";
DROP TYPE "Role_old";
ALTER TABLE "users" ALTER COLUMN "user_role" SET DEFAULT 'PLAYER';
COMMIT;

-- AlterTable
ALTER TABLE "users" ADD COLUMN     "user_tshirt_number" INTEGER,
ALTER COLUMN "user_role" SET DEFAULT 'PLAYER';
