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,6 +24,7 @@ DROP TABLE IF EXISTS thingsboard.entity_views; | ||
24 | CREATE TABLE IF NOT EXISTS thingsboard.entity_views ( | 24 | CREATE TABLE IF NOT EXISTS thingsboard.entity_views ( |
25 | id timeuuid, | 25 | id timeuuid, |
26 | entity_id timeuuid, | 26 | entity_id timeuuid, |
27 | + entity_type text, | ||
27 | tenant_id timeuuid, | 28 | tenant_id timeuuid, |
28 | customer_id timeuuid, | 29 | customer_id timeuuid, |
29 | name text, | 30 | name text, |
@@ -33,7 +34,7 @@ CREATE TABLE IF NOT EXISTS thingsboard.entity_views ( | @@ -33,7 +34,7 @@ CREATE TABLE IF NOT EXISTS thingsboard.entity_views ( | ||
33 | search_text text, | 34 | search_text text, |
34 | additional_info text, | 35 | additional_info text, |
35 | PRIMARY KEY (id, entity_id, tenant_id, customer_id) | 36 | PRIMARY KEY (id, entity_id, tenant_id, customer_id) |
36 | - ); | 37 | +); |
37 | 38 | ||
38 | CREATE MATERIALIZED VIEW IF NOT EXISTS thingsboard.entity_views_by_tenant_and_name AS | 39 | CREATE MATERIALIZED VIEW IF NOT EXISTS thingsboard.entity_views_by_tenant_and_name AS |
39 | SELECT * | 40 | SELECT * |
@@ -642,6 +642,7 @@ CREATE TABLE IF NOT EXISTS thingsboard.rule_node ( | @@ -642,6 +642,7 @@ CREATE TABLE IF NOT EXISTS thingsboard.rule_node ( | ||
642 | CREATE TABLE IF NOT EXISTS thingsboard.entity_views ( | 642 | CREATE TABLE IF NOT EXISTS thingsboard.entity_views ( |
643 | id timeuuid, | 643 | id timeuuid, |
644 | entity_id timeuuid, | 644 | entity_id timeuuid, |
645 | + entity_type text, | ||
645 | tenant_id timeuuid, | 646 | tenant_id timeuuid, |
646 | customer_id timeuuid, | 647 | customer_id timeuuid, |
647 | name text, | 648 | name text, |