2005-06-09 09:49:10 +00:00
|
|
|
--
|
|
|
|
|
-- User permissions have been broken out to a separate table;
|
|
|
|
|
-- this allows sites with a shared user table to have different
|
|
|
|
|
-- permissions assigned to a user in each project.
|
|
|
|
|
--
|
|
|
|
|
-- This table replaces the old user_rights field which used a
|
|
|
|
|
-- comma-separated blob.
|
|
|
|
|
--
|
|
|
|
|
CREATE TABLE /*$wgDBprefix*/user_groups (
|
|
|
|
|
-- Key to user_id
|
2007-06-22 20:09:59 +00:00
|
|
|
ug_user int unsigned NOT NULL default '0',
|
2012-10-20 11:35:38 +00:00
|
|
|
|
2005-06-09 09:49:10 +00:00
|
|
|
-- Group names are short symbolic string keys.
|
|
|
|
|
-- The set of group names is open-ended, though in practice
|
|
|
|
|
-- only some predefined ones are likely to be used.
|
|
|
|
|
--
|
|
|
|
|
-- At runtime $wgGroupPermissions will associate group keys
|
|
|
|
|
-- with particular permissions. A user will have the combined
|
|
|
|
|
-- permissions of any group they're explicitly in, plus
|
|
|
|
|
-- the implicit '*' and 'user' groups.
|
2007-06-22 20:09:59 +00:00
|
|
|
ug_group varbinary(16) NOT NULL default '',
|
2012-10-20 11:35:38 +00:00
|
|
|
|
2005-06-09 09:49:10 +00:00
|
|
|
PRIMARY KEY (ug_user,ug_group),
|
|
|
|
|
KEY (ug_group)
|
2007-04-22 14:04:06 +00:00
|
|
|
) /*$wgDBTableOptions*/;
|