diff --git a/src/main/resources/db/migration-mysql/V12__system_config_modify_field_value_to_text.sql b/src/main/resources/db/migration-mysql/V12__system_config_modify_field_value_to_text.sql new file mode 100644 index 0000000..41d9156 --- /dev/null +++ b/src/main/resources/db/migration-mysql/V12__system_config_modify_field_value_to_text.sql @@ -0,0 +1 @@ +alter table system_config modify value text null comment '系统设置属性 value'; \ No newline at end of file diff --git a/src/main/resources/db/migration-sqlite/V12__system_config_modify_field_value_to_text.sql b/src/main/resources/db/migration-sqlite/V12__system_config_modify_field_value_to_text.sql new file mode 100644 index 0000000..3c50e04 --- /dev/null +++ b/src/main/resources/db/migration-sqlite/V12__system_config_modify_field_value_to_text.sql @@ -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; \ No newline at end of file