changed dashboard configuration column type
This commit is contained in:
parent
77a0e3bbe1
commit
92f088b53f
@ -426,6 +426,7 @@ public class SqlDatabaseUpgradeService implements DatabaseEntitiesUpgradeService
|
|||||||
log.info("Updating schema ...");
|
log.info("Updating schema ...");
|
||||||
try {
|
try {
|
||||||
conn.createStatement().execute("CREATE INDEX IF NOT EXISTS idx_device_device_profile_id ON device(tenant_id, device_profile_id);");
|
conn.createStatement().execute("CREATE INDEX IF NOT EXISTS idx_device_device_profile_id ON device(tenant_id, device_profile_id);");
|
||||||
|
conn.createStatement().execute("ALTER TABLE dashboard ALTER COLUMN configuration TYPE varchar;");
|
||||||
conn.createStatement().execute("UPDATE tb_schema_settings SET schema_version = 3002001;");
|
conn.createStatement().execute("UPDATE tb_schema_settings SET schema_version = 3002001;");
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
log.error("Failed updating schema!!!", e);
|
log.error("Failed updating schema!!!", e);
|
||||||
|
|||||||
@ -114,7 +114,7 @@ CREATE TABLE IF NOT EXISTS customer (
|
|||||||
CREATE TABLE IF NOT EXISTS dashboard (
|
CREATE TABLE IF NOT EXISTS dashboard (
|
||||||
id uuid NOT NULL CONSTRAINT dashboard_pkey PRIMARY KEY,
|
id uuid NOT NULL CONSTRAINT dashboard_pkey PRIMARY KEY,
|
||||||
created_time bigint NOT NULL,
|
created_time bigint NOT NULL,
|
||||||
configuration varchar(10000000),
|
configuration varchar,
|
||||||
assigned_customers varchar(1000000),
|
assigned_customers varchar(1000000),
|
||||||
search_text varchar(255),
|
search_text varchar(255),
|
||||||
tenant_id uuid,
|
tenant_id uuid,
|
||||||
|
|||||||
@ -132,7 +132,7 @@ CREATE TABLE IF NOT EXISTS customer (
|
|||||||
CREATE TABLE IF NOT EXISTS dashboard (
|
CREATE TABLE IF NOT EXISTS dashboard (
|
||||||
id uuid NOT NULL CONSTRAINT dashboard_pkey PRIMARY KEY,
|
id uuid NOT NULL CONSTRAINT dashboard_pkey PRIMARY KEY,
|
||||||
created_time bigint NOT NULL,
|
created_time bigint NOT NULL,
|
||||||
configuration varchar(10000000),
|
configuration varchar,
|
||||||
assigned_customers varchar(1000000),
|
assigned_customers varchar(1000000),
|
||||||
search_text varchar(255),
|
search_text varchar(255),
|
||||||
tenant_id uuid,
|
tenant_id uuid,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user