This commit is contained in:
sjk
2025-11-28 15:18:10 +08:00
parent ad4a600af9
commit 5683f35942
188 changed files with 53680 additions and 1062 deletions

8
增量sql.sql Normal file
View File

@@ -0,0 +1,8 @@
ALTER TABLE ai_users ADD COLUMN password VARCHAR(255) DEFAULT NULL AFTER email;
-- 修复 open_id 唯一索引冲突问题
-- 将 open_id 字段改为可空,允许邮箱注册用户不需要微信 openid
ALTER TABLE ai_users MODIFY COLUMN open_id VARCHAR(50) DEFAULT NULL COMMENT '微信openid邮箱注册用户为NULL或email:前缀';
-- 如果有空字符串的 open_id需要先清理
UPDATE ai_users SET open_id = NULL WHERE open_id = '';