Skip to content

Commit 81656b4

Browse files
authored
πŸ› fix when cannot re-upload or save app icon
2 parents 2bbd95c + 4e401ce commit 81656b4

File tree

4 files changed

+175
-95
lines changed

4 files changed

+175
-95
lines changed

β€Žbackend/database/db_models.pyβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ class TenantConfig(TableBase):
257257
value_type = Column(String(
258258
100), doc=" the data type of config_value, optional values: single/multi", default="single")
259259
config_key = Column(String(100), doc="the key of the config")
260-
config_value = Column(String(10000), doc="the value of the config")
260+
config_value = Column(Text, doc="the value of the config")
261261

262262

263263
class MemoryUserConfig(TableBase):

β€Ždocker/init.sqlβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ CREATE TABLE IF NOT EXISTS nexent.tenant_config_t (
407407
user_id VARCHAR(100),
408408
value_type VARCHAR(100),
409409
config_key VARCHAR(100),
410-
config_value VARCHAR(10000),
410+
config_value TEXT,
411411
create_time TIMESTAMP WITHOUT TIME ZONE DEFAULT CURRENT_TIMESTAMP,
412412
update_time TIMESTAMP WITHOUT TIME ZONE DEFAULT CURRENT_TIMESTAMP,
413413
created_by VARCHAR(100),
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ALTER TABLE nexent.tenant_config_t ALTER COLUMN config_value TYPE TEXT;

0 commit comments

Comments
Β (0)