Manual:user_newtalk table

From MediaWiki.org
Jump to: navigation, search

Other languages:
English • ‎español • ‎日本語 • ‎polski • ‎中文
Manual:ContentsManual:Contents MediaWiki database layoutManual:Database layout user_newtalk table


The user_newtalk table stores the IDs or IP addresses of users whose talk pages have been changed. This information is used for the display of the "you have new messages" box. The respective row is deleted when the user looks at the page.

Fields[edit]

user_id[edit]

Key to user.user_idManual:User table#user_id or "0" for anonymous users.

user_ip[edit]

If the user is an anonymous user their IP address is stored here since the user_id of 0 is ambiguous.

user_last_timestamp[edit]

MediaWiki version: 1.13

Timestamp for getting the difference since last view.

Schema summary[edit]

MediaWiki version: 1.25

DESCRIBE user_newtalk;

+---------------------+------------------+------+-----+---------+-------+
| Field               | Type             | Null | Key | Default | Extra |
+---------------------+------------------+------+-----+---------+-------+
| user_id             | int(11) unsigned | NO   | MUL | 0       |       |
| user_ip             | varbinary(40)    | NO   | MUL | NULL    |       |
| user_last_timestamp | varbinary(14)    | YES  |     | NULL    |       |
+---------------------+------------------+------+-----+---------+-------+


MediaWiki versions: 1.18 – 1.24

DESCRIBE user_newtalk;

+---------------------+---------------+------+-----+---------+-------+
| Field               | Type          | Null | Key | Default | Extra |
+---------------------+---------------+------+-----+---------+-------+
| user_id             | int(11)       | NO   | MUL | 0       |       |
| user_ip             | varbinary(40) | NO   | MUL | NULL    |       |
| user_last_timestamp | varbinary(14) | YES  |     | NULL    |       |
+---------------------+---------------+------+-----+---------+-------+


MediaWiki versions: 1.13 – 1.17

DESCRIBE user_newtalk;

+---------------------+---------------+------+-----+---------+-------+
| Field               | Type          | Null | Key | Default | Extra |
+---------------------+---------------+------+-----+---------+-------+
| user_id             | int(11)       | NO   | MUL | 0       |       |
| user_ip             | varbinary(40) | NO   | MUL | NULL    |       |
| user_last_timestamp | binary(14)    | NO   |     | NULL    |       |
+---------------------+---------------+------+-----+---------+-------+


MediaWiki versions: 1.10 – 1.12

DESCRIBE user_newtalk;

+---------+---------------+------+-----+---------+-------+
| Field   | Type          | Null | Key | Default | Extra |
+---------+---------------+------+-----+---------+-------+
| user_id | int(11)       | NO   | MUL | 0       |       |
| user_ip | varbinary(40) | NO   | MUL | NULL    |       |
+---------+---------------+------+-----+---------+-------+


MediaWiki versions: 1.1 – 1.9

DESCRIBE user_newtalk;

+---------+-------------+------+-----+---------+-------+
| Field   | Type        | Null | Key | Default | Extra |
+---------+-------------+------+-----+---------+-------+
| user_id | int(5)      | NO   | MUL | 0       |       |
| user_ip | varchar(40) | NO   | MUL | NULL    |       |
+---------+-------------+------+-----+---------+-------+
DatabasesManual:Database layout Engines: MySQL/MariaDBManual:MySQLOracleManual:OraclePostgreSQLManual:PostgreSQLSQLiteManual:SQLiteSQL ServerManual:Microsoft SQL Server

Technical documentation: SchemaManual:Database layout (tablesCategory:MediaWiki database tables) – API property associationsAPI:Database field and API property associationsField prefixesDatabase field prefixesPrimary key storage in other fieldsManual:Primary key storage in other fieldsWikimedia extension tablesCategory:Wikimedia extension database tables
Configuration: SettingsManual:Configuration_settings#Database_settingsSharingManual:Shared database
Development: AccessManual:Database accessOptimizationDatabase optimizationPolicyDevelopment policy#Database_patchesUpdaterManual:DatabaseUpdater.phpExtension schema updatesManual:Hooks/LoadExtensionSchemaUpdatesPatch fileManual:SQL patch file

Core tables: archivebot_passwordscategorycategorylinkschange_tagconfigexternallinksfilearchivehitcounterimageimagelinksinterwikiiwlinksipblocksjobl10n_cachelanglinkslogginglog_searchmsg_resourcemsg_resource_linksmodule_depsobjectcacheoldimagepagepagelinkspage_propspage_restrictionsprotected_titlesquerycachequerycachetwoquerycache_inforecentchangesredirectrevisionsearchindexsitessite_identifiers - site_statstag_summarytemplatelinkstexttranscacheupdateloguploadstashuseruser_former_groupsuser_groupsuser_newtalkuser_propertiestag_summaryvalid_tagwatchlist