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
"created_at"timestamp with time zone DEFAULT now() NOT NULL,
23
+
"updated_at"timestamp with time zone DEFAULT now() NOT NULL
24
+
);
25
+
--> statement-breakpoint
26
+
DO $$ BEGIN
27
+
ALTERTABLE"agent_config" ADD CONSTRAINT"agent_config_publisher_id_publisher_id_fk"FOREIGN KEY ("publisher_id") REFERENCES"public"."publisher"("id") ON DELETE no action ONUPDATE no action;
28
+
EXCEPTION
29
+
WHEN duplicate_object THEN null;
30
+
END $$;
31
+
--> statement-breakpoint
32
+
DO $$ BEGIN
33
+
ALTERTABLE"publisher" ADD CONSTRAINT"publisher_user_id_user_id_fk"FOREIGN KEY ("user_id") REFERENCES"public"."user"("id") ON DELETE cascadeONUPDATE no action;
34
+
EXCEPTION
35
+
WHEN duplicate_object THEN null;
36
+
END $$;
37
+
--> statement-breakpoint
38
+
CREATEINDEXIF NOT EXISTS "idx_agent_config_publisher"ON"agent_config" USING btree ("publisher_id");
0 commit comments