Commit 92f088b53fdd601f5773aa87fb2eacc3ffa474a7
Committed by
Andrew Shvayka
1 parent
77a0e3bb
changed dashboard configuration column type
Showing
3 changed files
with
3 additions
and
2 deletions
@@ -426,6 +426,7 @@ public class SqlDatabaseUpgradeService implements DatabaseEntitiesUpgradeService | @@ -426,6 +426,7 @@ public class SqlDatabaseUpgradeService implements DatabaseEntitiesUpgradeService | ||
426 | log.info("Updating schema ..."); | 426 | log.info("Updating schema ..."); |
427 | try { | 427 | try { |
428 | conn.createStatement().execute("CREATE INDEX IF NOT EXISTS idx_device_device_profile_id ON device(tenant_id, device_profile_id);"); | 428 | conn.createStatement().execute("CREATE INDEX IF NOT EXISTS idx_device_device_profile_id ON device(tenant_id, device_profile_id);"); |
429 | + conn.createStatement().execute("ALTER TABLE dashboard ALTER COLUMN configuration TYPE varchar;"); | ||
429 | conn.createStatement().execute("UPDATE tb_schema_settings SET schema_version = 3002001;"); | 430 | conn.createStatement().execute("UPDATE tb_schema_settings SET schema_version = 3002001;"); |
430 | } catch (Exception e) { | 431 | } catch (Exception e) { |
431 | log.error("Failed updating schema!!!", e); | 432 | log.error("Failed updating schema!!!", e); |
@@ -114,7 +114,7 @@ CREATE TABLE IF NOT EXISTS customer ( | @@ -114,7 +114,7 @@ CREATE TABLE IF NOT EXISTS customer ( | ||
114 | CREATE TABLE IF NOT EXISTS dashboard ( | 114 | CREATE TABLE IF NOT EXISTS dashboard ( |
115 | id uuid NOT NULL CONSTRAINT dashboard_pkey PRIMARY KEY, | 115 | id uuid NOT NULL CONSTRAINT dashboard_pkey PRIMARY KEY, |
116 | created_time bigint NOT NULL, | 116 | created_time bigint NOT NULL, |
117 | - configuration varchar(10000000), | 117 | + configuration varchar, |
118 | assigned_customers varchar(1000000), | 118 | assigned_customers varchar(1000000), |
119 | search_text varchar(255), | 119 | search_text varchar(255), |
120 | tenant_id uuid, | 120 | tenant_id uuid, |
@@ -132,7 +132,7 @@ CREATE TABLE IF NOT EXISTS customer ( | @@ -132,7 +132,7 @@ CREATE TABLE IF NOT EXISTS customer ( | ||
132 | CREATE TABLE IF NOT EXISTS dashboard ( | 132 | CREATE TABLE IF NOT EXISTS dashboard ( |
133 | id uuid NOT NULL CONSTRAINT dashboard_pkey PRIMARY KEY, | 133 | id uuid NOT NULL CONSTRAINT dashboard_pkey PRIMARY KEY, |
134 | created_time bigint NOT NULL, | 134 | created_time bigint NOT NULL, |
135 | - configuration varchar(10000000), | 135 | + configuration varchar, |
136 | assigned_customers varchar(1000000), | 136 | assigned_customers varchar(1000000), |
137 | search_text varchar(255), | 137 | search_text varchar(255), |
138 | tenant_id uuid, | 138 | tenant_id uuid, |