Commit 80af7ebf8d9e5dcb2fe8a9a3b867a2844bfcce97

Authored by Andreas Schönebeck
Committed by Andrew Shvayka
1 parent dfe2586e

Update schema-entities.sql

... ... @@ -72,7 +72,7 @@ CREATE TABLE IF NOT EXISTS attribute_kv (
72 72 long_v bigint,
73 73 dbl_v double precision,
74 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 78 CREATE TABLE IF NOT EXISTS component_descriptor (
... ... @@ -148,7 +148,7 @@ CREATE TABLE IF NOT EXISTS relation (
148 148 relation_type_group varchar(255),
149 149 relation_type varchar(255),
150 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 154 CREATE TABLE IF NOT EXISTS tb_user (
... ...