Files
qiandao/fix_config_data.sql
2025-10-23 00:22:43 +08:00

24 lines
1.1 KiB
SQL
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

-- 修复配置数据的SQL脚本
-- 确保使用正确的UTF-8字符编码
-- 设置连接字符集
SET NAMES utf8mb4 COLLATE utf8mb4_unicode_ci;
SET character_set_client = utf8mb4;
SET character_set_connection = utf8mb4;
SET character_set_results = utf8mb4;
-- 清空现有数据
DELETE FROM config;
-- 重新插入正确的配置数据
INSERT INTO config (config_key, config_value, description) VALUES
('main_title', '医疗协会年度大会签到', '首页主标题'),
('subtitle', '欢迎参加2024年医疗协会年度大会请完成签到', '首页副标题'),
('success_title', '签到成功', '签到成功页面标题'),
('success_message', '欢迎参加本次会议,祝您会议愉快!', '签到成功消息'),
('already_checked_title', '您已签到', '重复签到页面标题'),
('already_checked_message', '您之前已经完成签到,无需重复签到。祝您会议愉快!', '重复签到消息'),
('success_main_title', '签到成功', '签到成功后的主标题');
-- 验证插入的数据
SELECT id, config_key, config_value, description FROM config;