Commit 80af7ebf8d9e5dcb2fe8a9a3b867a2844bfcce97
Committed by
Andrew Shvayka
1 parent
dfe2586e
Update schema-entities.sql
Showing
1 changed file
with
2 additions
and
2 deletions
@@ -72,7 +72,7 @@ CREATE TABLE IF NOT EXISTS attribute_kv ( | @@ -72,7 +72,7 @@ CREATE TABLE IF NOT EXISTS attribute_kv ( | ||
72 | long_v bigint, | 72 | long_v bigint, |
73 | dbl_v double precision, | 73 | dbl_v double precision, |
74 | last_update_ts bigint, | 74 | last_update_ts bigint, |
75 | - CONSTRAINT attribute_kv_unq_key UNIQUE (entity_type, entity_id, attribute_type, attribute_key) | 75 | + CONSTRAINT attribute_kv_pkey PRIMARY KEY (entity_type, entity_id, attribute_type, attribute_key) |
76 | ); | 76 | ); |
77 | 77 | ||
78 | CREATE TABLE IF NOT EXISTS component_descriptor ( | 78 | CREATE TABLE IF NOT EXISTS component_descriptor ( |
@@ -148,7 +148,7 @@ CREATE TABLE IF NOT EXISTS relation ( | @@ -148,7 +148,7 @@ CREATE TABLE IF NOT EXISTS relation ( | ||
148 | relation_type_group varchar(255), | 148 | relation_type_group varchar(255), |
149 | relation_type varchar(255), | 149 | relation_type varchar(255), |
150 | additional_info varchar, | 150 | additional_info varchar, |
151 | - CONSTRAINT relation_unq_key UNIQUE (from_id, from_type, relation_type_group, relation_type, to_id, to_type) | 151 | + CONSTRAINT relation_pkey PRIMARY KEY (from_id, from_type, relation_type_group, relation_type, to_id, to_type) |
152 | ); | 152 | ); |
153 | 153 | ||
154 | CREATE TABLE IF NOT EXISTS tb_user ( | 154 | CREATE TABLE IF NOT EXISTS tb_user ( |