added 2 not null constraints

This commit is contained in:
Michele Artini 2023-06-14 11:23:04 +02:00
parent e604d406bd
commit 9ef99f4785
1 changed files with 2 additions and 2 deletions

View File

@ -43,7 +43,7 @@ CREATE TABLE community_datasources (
); );
CREATE TABLE community_support_orgs ( CREATE TABLE community_support_orgs (
community text REFERENCES communities(id), community text NOT NULL REFERENCES communities(id),
org_name text NOT NULL, org_name text NOT NULL,
org_url text NOT NULL, org_url text NOT NULL,
org_logourl text NOT NULL, org_logourl text NOT NULL,
@ -51,7 +51,7 @@ CREATE TABLE community_support_orgs (
); );
CREATE TABLE community_orgs ( CREATE TABLE community_orgs (
community text REFERENCES communities(id), community text NOT NULL REFERENCES communities(id),
org_id text NOT NULL, org_id text NOT NULL,
PRIMARY KEY (community, org_id) PRIMARY KEY (community, org_id)
); );