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 a895f32d..4e742398 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 @@ -4,7 +4,6 @@ DROP TABLE IF EXISTS community_support_orgs; DROP TABLE IF EXISTS community_orgs; DROP TABLE IF EXISTS communities; - CREATE TABLE communities ( id text PRIMARY KEY, label text NOT NULL, @@ -55,3 +54,8 @@ CREATE TABLE community_orgs ( org_id text NOT NULL, PRIMARY KEY (community, org_id) ); + +CREATE INDEX community_projects_community ON community_projects(community); +CREATE INDEX community_datasources_community ON community_datasources(community); +CREATE INDEX community_support_orgs_community ON community_support_orgs(community); +CREATE INDEX community_orgs_community ON community_orgs(community);