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) );