You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ALTERTABLE"course_product_snapshot_ui_contents" ADD CONSTRAINT"course_product_snapshot_ui_contents_file_id_files_id_fk"FOREIGN KEY ("file_id") REFERENCES"public"."files"("id") ON DELETE no action ONUPDATE no action;
5
+
EXCEPTION
6
+
WHEN duplicate_object THEN null;
7
+
END $$;
8
+
--> statement-breakpoint
9
+
DO $$ BEGIN
10
+
ALTERTABLE"ebook_product_snapshot_ui_contents" ADD CONSTRAINT"ebook_product_snapshot_ui_contents_file_id_files_id_fk"FOREIGN KEY ("file_id") REFERENCES"public"."files"("id") ON DELETE no action ONUPDATE no action;
11
+
EXCEPTION
12
+
WHEN duplicate_object THEN null;
13
+
END $$;
14
+
--> statement-breakpoint
15
+
CREATEINDEXIF NOT EXISTS "idx_course_product_snapshot_ui_contents_file_id"ON"course_product_snapshot_ui_contents" USING btree ("file_id");--> statement-breakpoint
16
+
CREATEINDEXIF NOT EXISTS "idx_ebook_product_snapshot_ui_contents_file_id"ON"ebook_product_snapshot_ui_contents" USING btree ("file_id");--> statement-breakpoint
17
+
ALTERTABLE"course_product_snapshot_ui_contents" DROP COLUMN IF EXISTS "url";--> statement-breakpoint
18
+
ALTERTABLE"ebook_product_snapshot_ui_contents" DROP COLUMN IF EXISTS "url";
0 commit comments