added migrations folder to git-project to sync resolved migrations

This commit is contained in:
PxlLoewe
2025-06-27 18:44:18 -07:00
parent e3988c24e3
commit 8071f4b764
57 changed files with 1012 additions and 1 deletions

View File

@@ -0,0 +1,16 @@
/*
Warnings:
- The values [OBLIGATED_COURSE] on the enum `EVENT_TYPE` will be removed. If these variants are still used in the database, this will fail.
*/
-- AlterEnum
BEGIN;
CREATE TYPE "EVENT_TYPE_new" AS ENUM ('COURSE', 'PILOT_STARTER', 'DISPATCH_STARTER', 'EVENT');
ALTER TABLE "Event" ALTER COLUMN "type" DROP DEFAULT;
ALTER TABLE "Event" ALTER COLUMN "type" TYPE "EVENT_TYPE_new" USING ("type"::text::"EVENT_TYPE_new");
ALTER TYPE "EVENT_TYPE" RENAME TO "EVENT_TYPE_old";
ALTER TYPE "EVENT_TYPE_new" RENAME TO "EVENT_TYPE";
DROP TYPE "EVENT_TYPE_old";
ALTER TABLE "Event" ALTER COLUMN "type" SET DEFAULT 'EVENT';
COMMIT;