main
Backend Deploy 🚀 / build-and-deploy (push) Has been cancelled

This commit is contained in:
Harun CAN
2026-04-09 12:04:27 +03:00
parent 6627c213ec
commit 5f78ce274e
11 changed files with 381 additions and 107 deletions
@@ -0,0 +1,12 @@
-- AlterTable: Convert videoStyle from enum to text (data-safe)
-- Step 1: Alter columns to TEXT, casting existing enum values to strings
ALTER TABLE "Project" ALTER COLUMN "videoStyle" DROP DEFAULT;
ALTER TABLE "Project" ALTER COLUMN "videoStyle" TYPE TEXT USING "videoStyle"::TEXT;
ALTER TABLE "Project" ALTER COLUMN "videoStyle" SET DEFAULT 'CINEMATIC';
ALTER TABLE "UserPreference" ALTER COLUMN "defaultVideoStyle" DROP DEFAULT;
ALTER TABLE "UserPreference" ALTER COLUMN "defaultVideoStyle" TYPE TEXT USING "defaultVideoStyle"::TEXT;
ALTER TABLE "UserPreference" ALTER COLUMN "defaultVideoStyle" SET DEFAULT 'CINEMATIC';
-- Step 2: Drop the enum type (no longer needed)
DROP TYPE IF EXISTS "VideoStyle";