最近做一个项目  不同平台下  需要unionID为唯一。之前做过users表中做过openid,现在要做一下unionID

– – 创建unionid

ALTER TABLE `users`
ADD COLUMN `unionid` varchar(40) NULL COMMENT ‘微信unionid’ AFTER `openid`;

alter table users add unique key unionid(unionid,plat);

Comments are closed.

Post Navigation