web
This commit is contained in:
8
增量sql.sql
Normal file
8
增量sql.sql
Normal 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 = '';
|
||||
Reference in New Issue
Block a user