From 4d0010aff01ce4266f519ca31670d0b443eb6695 Mon Sep 17 00:00:00 2001 From: song-cc-rock Date: Thu, 19 Sep 2024 17:13:06 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E7=B3=BB=E7=BB=9F=E8=AE=BE=E7=BD=AE):=20?= =?UTF-8?q?=E5=88=9D=E5=A7=8B=E5=8C=96=E9=BB=98=E8=AE=A4=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E5=A4=A7=E5=B0=8F=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --task=1016193 --user=宋昌昌 系统配置支持自定义文件大小限制-后端-V2 https://www.tapd.cn/55049933/s/1576397 --- .../db/migration/2.10.19.ddl/V141__2.10.19_release.sql | 2 +- .../2.10.20/dml/V142__2.10.20_init_file_upload.sql | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 system-setting/backend/src/main/resources/db/migration/2.10.20/dml/V142__2.10.20_init_file_upload.sql diff --git a/system-setting/backend/src/main/resources/db/migration/2.10.19.ddl/V141__2.10.19_release.sql b/system-setting/backend/src/main/resources/db/migration/2.10.19.ddl/V141__2.10.19_release.sql index 1434b1575b..a9e064e709 100644 --- a/system-setting/backend/src/main/resources/db/migration/2.10.19.ddl/V141__2.10.19_release.sql +++ b/system-setting/backend/src/main/resources/db/migration/2.10.19.ddl/V141__2.10.19_release.sql @@ -10,4 +10,4 @@ CREATE TABLE IF NOT EXISTS platform_source( DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '平台对接保存参数'; -SET SESSION innodb_lock_wait_timeout = DEFAULT; +SET SESSION innodb_lock_wait_timeout = DEFAULT; \ No newline at end of file diff --git a/system-setting/backend/src/main/resources/db/migration/2.10.20/dml/V142__2.10.20_init_file_upload.sql b/system-setting/backend/src/main/resources/db/migration/2.10.20/dml/V142__2.10.20_init_file_upload.sql new file mode 100644 index 0000000000..60e5536025 --- /dev/null +++ b/system-setting/backend/src/main/resources/db/migration/2.10.20/dml/V142__2.10.20_init_file_upload.sql @@ -0,0 +1,6 @@ +SET SESSION innodb_lock_wait_timeout = 7200; + +-- 初始化默认参数文件上传大小 +INSERT INTO system_parameter (param_key, param_value, type, sort) VALUES ('base.file.upload.size', '50', 'text', 1); + +SET SESSION innodb_lock_wait_timeout = DEFAULT;