Commit c5827e1b9e0f08db4756ca28f40bde4180837f6b
1 parent
8ecd9628
was added entity_type field to entity_views table
Showing
2 changed files
with
3 additions
and
1 deletions
... | ... | @@ -24,6 +24,7 @@ DROP TABLE IF EXISTS thingsboard.entity_views; |
24 | 24 | CREATE TABLE IF NOT EXISTS thingsboard.entity_views ( |
25 | 25 | id timeuuid, |
26 | 26 | entity_id timeuuid, |
27 | + entity_type text, | |
27 | 28 | tenant_id timeuuid, |
28 | 29 | customer_id timeuuid, |
29 | 30 | name text, |
... | ... | @@ -33,7 +34,7 @@ CREATE TABLE IF NOT EXISTS thingsboard.entity_views ( |
33 | 34 | search_text text, |
34 | 35 | additional_info text, |
35 | 36 | PRIMARY KEY (id, entity_id, tenant_id, customer_id) |
36 | - ); | |
37 | +); | |
37 | 38 | |
38 | 39 | CREATE MATERIALIZED VIEW IF NOT EXISTS thingsboard.entity_views_by_tenant_and_name AS |
39 | 40 | SELECT * | ... | ... |