Commit c5827e1b9e0f08db4756ca28f40bde4180837f6b

Authored by viktorbasanets
1 parent 8ecd9628

was added entity_type field to entity_views table

... ... @@ -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 *
... ...
... ... @@ -642,6 +642,7 @@ CREATE TABLE IF NOT EXISTS thingsboard.rule_node (
642 642 CREATE TABLE IF NOT EXISTS thingsboard.entity_views (
643 643 id timeuuid,
644 644 entity_id timeuuid,
  645 + entity_type text,
645 646 tenant_id timeuuid,
646 647 customer_id timeuuid,
647 648 name text,
... ...