From 57adec670b5eeb71a4b299b5a2ad694ce0ef4e74 Mon Sep 17 00:00:00 2001 From: Volodymyr Babak Date: Thu, 10 Dec 2020 17:26:20 +0200 Subject: [PATCH] Formatting --- .../main/data/upgrade/2.6.0/schema_update.cql | 16 ++++++++-------- .../main/resources/cassandra/schema-entities.cql | 16 ++++++++-------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/application/src/main/data/upgrade/2.6.0/schema_update.cql b/application/src/main/data/upgrade/2.6.0/schema_update.cql index a6744c52f9..cad6d658a6 100644 --- a/application/src/main/data/upgrade/2.6.0/schema_update.cql +++ b/application/src/main/data/upgrade/2.6.0/schema_update.cql @@ -107,15 +107,15 @@ CREATE MATERIALIZED VIEW IF NOT EXISTS thingsboard.edge_by_customer_by_type_and_ WITH CLUSTERING ORDER BY ( tenant_id DESC, type ASC, search_text ASC, id DESC ); CREATE TABLE IF NOT EXISTS thingsboard.edge_event ( - id timeuuid, - tenant_id timeuuid, + id timeuuid, + tenant_id timeuuid, edge_id timeuuid, - edge_event_type text, - edge_event_action text, - edge_event_uid text, - entity_id timeuuid, - body text, - PRIMARY KEY ((tenant_id, edge_id), edge_event_type, edge_event_uid) + edge_event_type text, + edge_event_action text, + edge_event_uid text, + entity_id timeuuid, + body text, + PRIMARY KEY ((tenant_id, edge_id), edge_event_type, edge_event_uid) ); CREATE MATERIALIZED VIEW IF NOT EXISTS thingsboard.edge_event_by_id AS diff --git a/dao/src/main/resources/cassandra/schema-entities.cql b/dao/src/main/resources/cassandra/schema-entities.cql index 8ac0ad4956..0c3265b6ed 100644 --- a/dao/src/main/resources/cassandra/schema-entities.cql +++ b/dao/src/main/resources/cassandra/schema-entities.cql @@ -787,15 +787,15 @@ CREATE MATERIALIZED VIEW IF NOT EXISTS thingsboard.edge_by_customer_by_type_and_ WITH CLUSTERING ORDER BY ( tenant_id DESC, type ASC, search_text ASC, id DESC ); CREATE TABLE IF NOT EXISTS thingsboard.edge_event ( - id timeuuid, - tenant_id timeuuid, + id timeuuid, + tenant_id timeuuid, edge_id timeuuid, - edge_event_type text, - edge_event_action text, - edge_event_uid text, - entity_id timeuuid, - body text, - PRIMARY KEY ((tenant_id, edge_id), edge_event_type, edge_event_uid) + edge_event_type text, + edge_event_action text, + edge_event_uid text, + entity_id timeuuid, + body text, + PRIMARY KEY ((tenant_id, edge_id), edge_event_type, edge_event_uid) ); CREATE MATERIALIZED VIEW IF NOT EXISTS thingsboard.edge_event_by_id AS