From 023f6e9f1d0cc11eeeafce2575e38fe15d6d1579 Mon Sep 17 00:00:00 2001 From: ViacheslavKlimov Date: Mon, 22 Apr 2024 16:10:42 +0300 Subject: [PATCH] Increase max stats size for notification request --- application/src/main/data/upgrade/3.6.4/schema_update.sql | 6 ++++++ dao/src/main/resources/sql/schema-entities.sql | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/application/src/main/data/upgrade/3.6.4/schema_update.sql b/application/src/main/data/upgrade/3.6.4/schema_update.sql index d7d8887d13..3367e4df97 100644 --- a/application/src/main/data/upgrade/3.6.4/schema_update.sql +++ b/application/src/main/data/upgrade/3.6.4/schema_update.sql @@ -134,3 +134,9 @@ DELETE FROM asset WHERE type='TbServiceQueue'; DELETE FROM asset_profile WHERE name ='TbServiceQueue'; -- QUEUE STATS UPDATE END + +-- NOTIFICATIONS UPDATE START + +ALTER TABLE notification_request ALTER COLUMN stats SET DATA TYPE varchar(100000); + +-- NOTIFICATIONS UPDATE END diff --git a/dao/src/main/resources/sql/schema-entities.sql b/dao/src/main/resources/sql/schema-entities.sql index 1199f45181..9505e5aad7 100644 --- a/dao/src/main/resources/sql/schema-entities.sql +++ b/dao/src/main/resources/sql/schema-entities.sql @@ -855,7 +855,7 @@ CREATE TABLE IF NOT EXISTS notification_request ( originator_entity_type VARCHAR(32), rule_id UUID NULL, status VARCHAR(32), - stats VARCHAR(10000) + stats VARCHAR(100000) ); CREATE TABLE IF NOT EXISTS notification (