更新配置

This commit is contained in:
zg
2026-07-16 00:04:27 +08:00
parent b6facb0857
commit 730af827ad
21 changed files with 34 additions and 34 deletions

View File

@@ -7,7 +7,7 @@ ALTER TABLE sys_system MODIFY doc_token VARCHAR(128) DEFAULT NULL;
-- 去重约束
ALTER TABLE sys_system ADD UNIQUE KEY uk_gateway_url (gateway_url);
-- 更新现有数据: 给每个系统一个不同的 gateway_url
UPDATE sys_system SET gateway_url = CONCAT('http://127.0.0.1:9000/', system_code) WHERE gateway_url = '';
UPDATE sys_system SET gateway_url = CONCAT('http://127.0.0.1:32000/', system_code) WHERE gateway_url = '';
-- 2. sys_file: 重建为新结构(文件二进制存入数据库)
DROP TABLE IF EXISTS sys_file;