Found it in a second spot.
This commit is contained in:
parent
9d76178f56
commit
8666ff73c3
1 changed files with 9 additions and 1 deletions
|
|
@ -1,5 +1,13 @@
|
||||||
CREATE TYPE "public"."playoff_match_game_status" AS ENUM('scheduled', 'complete', 'postponed');--> statement-breakpoint
|
CREATE TYPE "public"."playoff_match_game_status" AS ENUM('scheduled', 'complete', 'postponed');--> statement-breakpoint
|
||||||
ALTER TYPE "public"."simulator_type" ADD VALUE 'ucl_bracket';--> statement-breakpoint
|
DO $$ BEGIN
|
||||||
|
IF NOT EXISTS (
|
||||||
|
SELECT 1 FROM pg_enum
|
||||||
|
WHERE enumlabel = 'ucl_bracket'
|
||||||
|
AND enumtypid = (SELECT oid FROM pg_type WHERE typname = 'simulator_type')
|
||||||
|
) THEN
|
||||||
|
ALTER TYPE "public"."simulator_type" ADD VALUE 'ucl_bracket';
|
||||||
|
END IF;
|
||||||
|
END $$;--> statement-breakpoint
|
||||||
CREATE TABLE IF NOT EXISTS "playoff_match_games" (
|
CREATE TABLE IF NOT EXISTS "playoff_match_games" (
|
||||||
"id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
|
"id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
|
||||||
"playoff_match_id" uuid NOT NULL,
|
"playoff_match_id" uuid NOT NULL,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue