Split down patch-comment-table.sql
[lhc/web/wiklou.git] / maintenance / archives / patch-user_former_groups.sql
1 -- Stores the groups the user has once belonged to.
2 -- The user may still belong these groups. Check user_groups.
3 CREATE TABLE /*_*/user_former_groups (
4 -- Key to user_id
5 ufg_user int unsigned NOT NULL default 0,
6 ufg_group varbinary(255) NOT NULL default ''
7 ) /*$wgDBTableOptions*/;
8
9 CREATE UNIQUE INDEX /*i*/ufg_user_group ON /*_*/user_former_groups (ufg_user,ufg_group);