Files
buzz-sheet/drizzle/0036_third_warbound.sql
T
gunshiz 6dc46ca2a7
CI / Verify (push) Successful in 1m58s
CI / Build immutable images and deploy (push) Failing after 2m32s
feat : update
2026-09-06 17:26:26 +07:00

6 lines
337 B
SQL

ALTER TABLE "guides"."guide" ADD COLUMN "youtube_urls" jsonb DEFAULT '[]'::jsonb NOT NULL;--> statement-breakpoint
UPDATE "guides"."guide"
SET "youtube_urls" = jsonb_build_array("youtube_url")
WHERE "youtube_url" IS NOT NULL AND btrim("youtube_url") <> '';--> statement-breakpoint
ALTER TABLE "guides"."guide" DROP COLUMN "youtube_url";