Commit f8a3181802a198843ade9dfe275f9a9f5a6d94d7

Authored by Igor Kulikov
2 parents 468f8ba8 1e5ee5be

Merge branch 'yefimov-andrey-increase-dashboard-conf'

@@ -214,6 +214,10 @@ public class SqlDatabaseUpgradeService implements DatabaseEntitiesUpgradeService @@ -214,6 +214,10 @@ public class SqlDatabaseUpgradeService implements DatabaseEntitiesUpgradeService
214 conn.createStatement().execute("ALTER TABLE attribute_kv ADD COLUMN json_v json;"); 214 conn.createStatement().execute("ALTER TABLE attribute_kv ADD COLUMN json_v json;");
215 } catch (Exception e) { 215 } catch (Exception e) {
216 } 216 }
  217 + try {
  218 + conn.createStatement().execute("ALTER TABLE dashboard ALTER COLUMN configuration SET DATA TYPE varchar(100000000);"); //NOSONAR, ignoring because method used to execute thingsboard database upgrade script
  219 + } catch (Exception e) {
  220 + }
217 log.info("Schema updated."); 221 log.info("Schema updated.");
218 } 222 }
219 break; 223 break;
@@ -108,7 +108,7 @@ CREATE TABLE IF NOT EXISTS customer ( @@ -108,7 +108,7 @@ CREATE TABLE IF NOT EXISTS customer (
108 108
109 CREATE TABLE IF NOT EXISTS dashboard ( 109 CREATE TABLE IF NOT EXISTS dashboard (
110 id varchar(31) NOT NULL CONSTRAINT dashboard_pkey PRIMARY KEY, 110 id varchar(31) NOT NULL CONSTRAINT dashboard_pkey PRIMARY KEY,
111 - configuration varchar(10000000), 111 + configuration varchar(100000000),
112 assigned_customers varchar(1000000), 112 assigned_customers varchar(1000000),
113 search_text varchar(255), 113 search_text varchar(255),
114 tenant_id varchar(31), 114 tenant_id varchar(31),