Browse Source

was added entity_type field to entity_views table

pull/1043/head
viktorbasanets 8 years ago
parent
commit
c5827e1b9e
  1. 3
      application/src/main/data/upgrade/2.1.1/schema_update.cql
  2. 1
      dao/src/main/resources/cassandra/schema.cql

3
application/src/main/data/upgrade/2.1.1/schema_update.cql

@ -24,6 +24,7 @@ DROP TABLE IF EXISTS thingsboard.entity_views;
CREATE TABLE IF NOT EXISTS thingsboard.entity_views (
id timeuuid,
entity_id timeuuid,
entity_type text,
tenant_id timeuuid,
customer_id timeuuid,
name text,
@ -33,7 +34,7 @@ CREATE TABLE IF NOT EXISTS thingsboard.entity_views (
search_text text,
additional_info text,
PRIMARY KEY (id, entity_id, tenant_id, customer_id)
);
);
CREATE MATERIALIZED VIEW IF NOT EXISTS thingsboard.entity_views_by_tenant_and_name AS
SELECT *

1
dao/src/main/resources/cassandra/schema.cql

@ -642,6 +642,7 @@ CREATE TABLE IF NOT EXISTS thingsboard.rule_node (
CREATE TABLE IF NOT EXISTS thingsboard.entity_views (
id timeuuid,
entity_id timeuuid,
entity_type text,
tenant_id timeuuid,
customer_id timeuuid,
name text,

Loading…
Cancel
Save