修改系统设置 value 值字段类型为 text, 防止过长

This commit is contained in:
zhaojun
2022-08-29 14:39:08 +08:00
parent a2fa8b3eeb
commit 43aba8e20e
2 changed files with 18 additions and 0 deletions

View File

@@ -0,0 +1 @@
alter table system_config modify value text null comment '系统设置属性 value';

View File

@@ -0,0 +1,17 @@
create table system_config_dg_tmp
(
id integer
primary key autoincrement,
name varchar(255),
value text,
title varchar(255)
);
insert into system_config_dg_tmp(id, name, value, title)
select id, name, value, title
from system_config;
drop table system_config;
alter table system_config_dg_tmp
rename to system_config;