admin/sql/wechat_login.sql

6 lines
200 B
SQL
Raw 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.

-- 微信登录:客户 openId 唯一索引(允许多个 NULL)
-- 执行前请确认索引不存在
CREATE UNIQUE INDEX IF NOT EXISTS uk_customer_wechat_openid
ON t_customer (WechatOpenid);