Skip to content

Commit c73aacf

Browse files
committed
fix CONSTRAINT on schema
1 parent 54021a8 commit c73aacf

File tree

4 files changed

+2511
-5
lines changed

4 files changed

+2511
-5
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
CREATE UNIQUE INDEX IF NOT EXISTS "unique_step_number_per_run" ON "agent_step" USING btree ("agent_run_id","step_number");--> statement-breakpoint
2+
ALTER TABLE "publisher" ADD CONSTRAINT "publisher_single_owner" CHECK (("publisher"."user_id" IS NOT NULL AND "publisher"."org_id" IS NULL) OR
3+
("publisher"."user_id" IS NULL AND "publisher"."org_id" IS NOT NULL));

0 commit comments

Comments
 (0)