From 43aba8e20e381bcb1b686c04d77090f8e6be11d9 Mon Sep 17 00:00:00 2001 From: zhaojun <873019219@qq.com> Date: Mon, 29 Aug 2022 14:39:08 +0800 Subject: [PATCH] =?UTF-8?q?:sparkles:=20=E4=BF=AE=E6=94=B9=E7=B3=BB?= =?UTF-8?q?=E7=BB=9F=E8=AE=BE=E7=BD=AE=20value=20=E5=80=BC=E5=AD=97?= =?UTF-8?q?=E6=AE=B5=E7=B1=BB=E5=9E=8B=E4=B8=BA=20text,=20=E9=98=B2?= =?UTF-8?q?=E6=AD=A2=E8=BF=87=E9=95=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...system_config_modify_field_value_to_text.sql | 1 + ...system_config_modify_field_value_to_text.sql | 17 +++++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 src/main/resources/db/migration-mysql/V12__system_config_modify_field_value_to_text.sql create mode 100644 src/main/resources/db/migration-sqlite/V12__system_config_modify_field_value_to_text.sql 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