Manual:user_former_groups table

From MediaWiki.org
Jump to: navigation, search
Manual:Contents MediaWiki database layout user_former_groups table


MediaWiki version: 1.18

The user_former_groups table stores the groups the user has once belonged to (will not contain groups the user had belonged to before MW 1.17). The user may again belong to these groups; check the table user_groups, if you want to know. This is used to keep MediaWiki from automatically adding users to groups from which he has been manually removed before. The table was added in r90749.

Fields[edit | edit source]

ufg_user[edit | edit source]

Key to user_id.

ufg_group[edit | edit source]

Name of the group, which the user was member of.

Schema summary[edit | edit source]

MediaWiki version: 1.21
mysql> describe user_former_groups;
+-----------+------------------+------+-----+---------+-------+
| Field     | Type             | Null | Key | Default | Extra |
+-----------+------------------+------+-----+---------+-------+
| ufg_user  | int(10) unsigned | NO   | PRI | 0       |       |
| ufg_group | varbinary(255)   | NO   | PRI |         |       |
+-----------+------------------+------+-----+---------+-------+
2 rows in set (0.00 sec)


MediaWiki version: 1.19
mysql> describe user_former_groups;
+-----------+------------------+------+-----+---------+-------+
| Field     | Type             | Null | Key | Default | Extra |
+-----------+------------------+------+-----+---------+-------+
| ufg_user  | int(10) unsigned | NO   | PRI | 0       |       |
| ufg_group | varbinary(32)    | NO   | PRI |         |       |
+-----------+------------------+------+-----+---------+-------+


MediaWiki version: 1.18
mysql> describe user_former_groups;
+-----------+------------------+------+-----+---------+-------+
| Field     | Type             | Null | Key | Default | Extra |
+-----------+------------------+------+-----+---------+-------+
| ufg_user  | int(10) unsigned | NO   | PRI | 0       |       |
| ufg_group | varbinary(16)    | NO   | PRI |         |       |
+-----------+------------------+------+-----+---------+-------+
2 rows in set (0.11 sec)
Databases Engines: MySQLOraclePostgreSQLSQLite
Technical documentation: Schema (tables) – API property associationsField prefixesPrimary key storage in other fieldsWikimedia extension tables
Configuration: SettingsSharing
Development: AccessOptimizationPolicyUpdaterExtension schema updatesPatch file
Core tables: archivecategorycategorylinkschange_tagconfigexternallinksfilearchivehitcounterimageimagelinksinterwikiiwlinksipblocksjobl10n_cachelanglinkslogginglog_searchmsg_resourcemsg_resource_linksmodule_depsobjectcacheoldimagepagepagelinkspage_propspage_restrictionsprotected_titlesquerycachequerycachetwoquerycache_inforecentchangesredirectrevisionsearchindexsitessite_statstag_summarytemplatelinkstexttranscacheupdateloguploadstashuseruser_former_groupsuser_groupsuser_newtalkuser_propertiesvalid_tagwatchlist