postgres indexes

This commit is contained in:
Michele Artini 2023-06-15 14:10:39 +02:00
parent fa5b0ef7c5
commit 01cea6fe12
1 changed files with 5 additions and 1 deletions

View File

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