Commit 02ba47597efddd17652bab194fe48dfa0069bb9a
Committed by
GitHub
Merge pull request #3106 from YevhenBondarenko/master
remove partitioning from relation in schema-entities.sql
Showing
1 changed file
with
8 additions
and
7 deletions
@@ -167,13 +167,14 @@ CREATE TABLE IF NOT EXISTS relation ( | @@ -167,13 +167,14 @@ CREATE TABLE IF NOT EXISTS relation ( | ||
167 | relation_type varchar(255), | 167 | relation_type varchar(255), |
168 | additional_info varchar, | 168 | additional_info varchar, |
169 | CONSTRAINT relation_pkey PRIMARY KEY (from_id, from_type, relation_type_group, relation_type, to_id, to_type) | 169 | CONSTRAINT relation_pkey PRIMARY KEY (from_id, from_type, relation_type_group, relation_type, to_id, to_type) |
170 | -) PARTITION BY LIST (relation_type_group); | ||
171 | - | ||
172 | -CREATE TABLE other_relations PARTITION OF relation DEFAULT; | ||
173 | -CREATE TABLE common_relations PARTITION OF relation FOR VALUES IN ('COMMON'); | ||
174 | -CREATE TABLE alarm_relations PARTITION OF relation FOR VALUES IN ('ALARM'); | ||
175 | -CREATE TABLE dashboard_relations PARTITION OF relation FOR VALUES IN ('DASHBOARD'); | ||
176 | -CREATE TABLE rule_relations PARTITION OF relation FOR VALUES IN ('RULE_CHAIN', 'RULE_NODE'); | 170 | +); |
171 | +-- ) PARTITION BY LIST (relation_type_group); | ||
172 | +-- | ||
173 | +-- CREATE TABLE other_relations PARTITION OF relation DEFAULT; | ||
174 | +-- CREATE TABLE common_relations PARTITION OF relation FOR VALUES IN ('COMMON'); | ||
175 | +-- CREATE TABLE alarm_relations PARTITION OF relation FOR VALUES IN ('ALARM'); | ||
176 | +-- CREATE TABLE dashboard_relations PARTITION OF relation FOR VALUES IN ('DASHBOARD'); | ||
177 | +-- CREATE TABLE rule_relations PARTITION OF relation FOR VALUES IN ('RULE_CHAIN', 'RULE_NODE'); | ||
177 | 178 | ||
178 | CREATE TABLE IF NOT EXISTS tb_user ( | 179 | CREATE TABLE IF NOT EXISTS tb_user ( |
179 | id uuid NOT NULL CONSTRAINT tb_user_pkey PRIMARY KEY, | 180 | id uuid NOT NULL CONSTRAINT tb_user_pkey PRIMARY KEY, |