From 69276fe30d2ed600f125bbc89dbdec99a692e162 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1s=20Palma?= Date: Fri, 20 Sep 2024 10:27:32 +0100 Subject: [PATCH] chore: add foreign key constraint to link_id of slot_professor --- postgres/sql/00_schema_postgres.sql | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/postgres/sql/00_schema_postgres.sql b/postgres/sql/00_schema_postgres.sql index d71bf63..b871b02 100644 --- a/postgres/sql/00_schema_postgres.sql +++ b/postgres/sql/00_schema_postgres.sql @@ -478,6 +478,10 @@ ALTER TABLE ONLY "public"."slot_professor" ALTER TABLE ONLY "public"."slot_professor" ADD CONSTRAINT "slot_professor_slot_id_ddc4b9c2_fk_slot_id" FOREIGN KEY ("slot_id") REFERENCES "public"."slot"("id") DEFERRABLE INITIALLY DEFERRED; +ALTER TABLE ONLY "public"."slot_professor" + ADD CONSTRAINT "slot_professor_professor_link_id" FOREIGN KEY ("link_id") REFERENCES "public"."professor_link"("id") DEFERRABLE INITIALLY DEFERRED; + + -- Completed on 2024-08-13 22:21:25 UTC