postgres indexes
This commit is contained in:
parent
fa5b0ef7c5
commit
01cea6fe12
|
@ -4,7 +4,6 @@ DROP TABLE IF EXISTS community_support_orgs;
|
||||||
DROP TABLE IF EXISTS community_orgs;
|
DROP TABLE IF EXISTS community_orgs;
|
||||||
DROP TABLE IF EXISTS communities;
|
DROP TABLE IF EXISTS communities;
|
||||||
|
|
||||||
|
|
||||||
CREATE TABLE communities (
|
CREATE TABLE communities (
|
||||||
id text PRIMARY KEY,
|
id text PRIMARY KEY,
|
||||||
label text NOT NULL,
|
label text NOT NULL,
|
||||||
|
@ -55,3 +54,8 @@ CREATE TABLE community_orgs (
|
||||||
org_id text NOT NULL,
|
org_id text NOT NULL,
|
||||||
PRIMARY KEY (community, org_id)
|
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);
|
||||||
|
|
Loading…
Reference in New Issue