From 9ef99f478593ef92241dfa3b8c8352bbf7a71722 Mon Sep 17 00:00:00 2001 From: "michele.artini" Date: Wed, 14 Jun 2023 11:23:04 +0200 Subject: [PATCH] added 2 not null constraints --- .../src/main/resources/sql/community-schema.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/dnet-exporter-api/src/main/resources/sql/community-schema.sql b/apps/dnet-exporter-api/src/main/resources/sql/community-schema.sql index 8ae012c3..a895f32d 100644 --- a/apps/dnet-exporter-api/src/main/resources/sql/community-schema.sql +++ b/apps/dnet-exporter-api/src/main/resources/sql/community-schema.sql @@ -43,7 +43,7 @@ CREATE TABLE community_datasources ( ); CREATE TABLE community_support_orgs ( - community text REFERENCES communities(id), + community text NOT NULL REFERENCES communities(id), org_name text NOT NULL, org_url text NOT NULL, org_logourl text NOT NULL, @@ -51,7 +51,7 @@ CREATE TABLE community_support_orgs ( ); CREATE TABLE community_orgs ( - community text REFERENCES communities(id), + community text NOT NULL REFERENCES communities(id), org_id text NOT NULL, PRIMARY KEY (community, org_id) );