Open main menu

Manual:user_properties table


Other languages:
Deutsch • ‎English • ‎español • ‎français • ‎polski • ‎中文 • ‎日本語
Manual:Contents MediaWiki database layout user_properties table


Contents

MediaWiki version: 1.16

The user_properties table stores user preferences. It replaces the old user.user_options blob. Only non-default settings are stored, so changes to the defaults are now reflected for everybody that hasn't saved an alternative preference, not only new accounts.

Schema summaryEdit

MediaWiki version: 1.18

DESCRIBE user_properties;

+-------------+----------------+------+-----+---------+----------------+
| Field       | Type           | Null | Key | Default | Extra          |
+-------------+----------------+------+-----+---------+----------------+
| up_user     | int(11)        | NO   | PRI | NULL    |                |
| up_property | varbinary(255) | NO   | PRI | NULL    |                |
| up_value    | blob           | YES  |     | NULL    |                |
+-------------+----------------+------+-----+---------+----------------+
MediaWiki versions: 1.16 – 1.17

DESCRIBE user_properties;

+-------------+---------------+------+-----+---------+----------------+
| Field       | Type          | Null | Key | Default | Extra          |
+-------------+---------------+------+-----+---------+----------------+
| up_user     | int(11)       | NO   | PRI | NULL    |                |
| up_property | varbinary(32) | NO   | PRI | NULL    |                |
| up_value    | blob          | YES  |     | NULL    |                |
+-------------+---------------+------+-----+---------+----------------+

FieldsEdit

up_userEdit

Foreign key to the user_id field of the user table.

up_propertyEdit

The user preference, see Manual:$wgDefaultUserOptions . Examples: gender, rememberpassword, watchcreations

up_valueEdit

The preference value.