remove partitioning from relation in schema-entities.sql
This commit is contained in:
parent
436aedef4d
commit
e9d94adc34
@ -167,13 +167,14 @@ CREATE TABLE IF NOT EXISTS relation (
|
|||||||
relation_type varchar(255),
|
relation_type varchar(255),
|
||||||
additional_info varchar,
|
additional_info varchar,
|
||||||
CONSTRAINT relation_pkey PRIMARY KEY (from_id, from_type, relation_type_group, relation_type, to_id, to_type)
|
CONSTRAINT relation_pkey PRIMARY KEY (from_id, from_type, relation_type_group, relation_type, to_id, to_type)
|
||||||
) PARTITION BY LIST (relation_type_group);
|
);
|
||||||
|
-- ) PARTITION BY LIST (relation_type_group);
|
||||||
CREATE TABLE other_relations PARTITION OF relation DEFAULT;
|
--
|
||||||
CREATE TABLE common_relations PARTITION OF relation FOR VALUES IN ('COMMON');
|
-- CREATE TABLE other_relations PARTITION OF relation DEFAULT;
|
||||||
CREATE TABLE alarm_relations PARTITION OF relation FOR VALUES IN ('ALARM');
|
-- CREATE TABLE common_relations PARTITION OF relation FOR VALUES IN ('COMMON');
|
||||||
CREATE TABLE dashboard_relations PARTITION OF relation FOR VALUES IN ('DASHBOARD');
|
-- CREATE TABLE alarm_relations PARTITION OF relation FOR VALUES IN ('ALARM');
|
||||||
CREATE TABLE rule_relations PARTITION OF relation FOR VALUES IN ('RULE_CHAIN', 'RULE_NODE');
|
-- CREATE TABLE dashboard_relations PARTITION OF relation FOR VALUES IN ('DASHBOARD');
|
||||||
|
-- CREATE TABLE rule_relations PARTITION OF relation FOR VALUES IN ('RULE_CHAIN', 'RULE_NODE');
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS tb_user (
|
CREATE TABLE IF NOT EXISTS tb_user (
|
||||||
id uuid NOT NULL CONSTRAINT tb_user_pkey PRIMARY KEY,
|
id uuid NOT NULL CONSTRAINT tb_user_pkey PRIMARY KEY,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user