Seed live demo award data
This commit is contained in:
@@ -51,10 +51,18 @@ public partial class EnsureDemoSeedSchema : Migration
|
||||
ALTER TABLE "Nominations" ADD COLUMN IF NOT EXISTS "TrackingReviewedByTwitchId" character varying(120);
|
||||
ALTER TABLE "Nominations" ADD COLUMN IF NOT EXISTS "TrackingReviewedAt" timestamp with time zone;
|
||||
|
||||
ALTER TABLE "ClipSubmissions" ADD COLUMN IF NOT EXISTS "CategoryId" integer;
|
||||
ALTER TABLE "ClipSubmissions" ADD COLUMN IF NOT EXISTS "CandidateId" integer;
|
||||
DO $vtsa_optional_demo_seed_schema$
|
||||
BEGIN
|
||||
IF to_regclass('"ClipSubmissions"') IS NOT NULL THEN
|
||||
ALTER TABLE "ClipSubmissions" ADD COLUMN IF NOT EXISTS "CategoryId" integer;
|
||||
ALTER TABLE "ClipSubmissions" ADD COLUMN IF NOT EXISTS "CandidateId" integer;
|
||||
END IF;
|
||||
|
||||
ALTER TABLE "ShowactApplications" ADD COLUMN IF NOT EXISTS "FieldResponsesJson" text NOT NULL DEFAULT '{}';
|
||||
IF to_regclass('"ShowactApplications"') IS NOT NULL THEN
|
||||
ALTER TABLE "ShowactApplications" ADD COLUMN IF NOT EXISTS "FieldResponsesJson" text NOT NULL DEFAULT '{}';
|
||||
END IF;
|
||||
END;
|
||||
$vtsa_optional_demo_seed_schema$;
|
||||
"""
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user