Manual:protected_titles table

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



The protected_titles table contains protection of non-existent pages, the list of protected pages can be found at Special:Protectedtitles.

Fields[edit | edit source]

pt_namespace[edit | edit source]

Namespace

pt_title[edit | edit source]

Page title

pt_user[edit | edit source]

User id of user who protected the page title

pt_reason[edit | edit source]

Protection comment

pt_timestamp[edit | edit source]

Timestamp of when the protection action was taken

pt_expiry[edit | edit source]

Timestamp of when the protection expires

pt_create_perm[edit | edit source]

Protection level

Versions[edit | edit source]

MediaWiki versions: 1.19 – 1.20
mysql> describe protected_titles;
+----------------+------------------+------+-----+---------+-------+
| Field          | Type             | Null | Key | Default | Extra |
+----------------+------------------+------+-----+---------+-------+
| pt_namespace   | int(11)          | NO   | PRI | NULL    |       |
| pt_title       | varbinary(255)   | NO   | PRI | NULL    |       |
| pt_user        | int(10) unsigned | NO   |     | NULL    |       |
| pt_reason      | tinyblob         | YES  |     | NULL    |       |
| pt_timestamp   | binary(14)       | NO   | MUL | NULL    |       |
| pt_expiry      | varbinary(14)    | NO   |     |         |       |
| pt_create_perm | varbinary(60)    | NO   |     | NULL    |       |
+----------------+------------------+------+-----+---------+-------+

DESCRIBE protected_titles; in version 1.18 gives the following:

+----------------+------------------+------+-----+---------+-------+
| Field          | Type             | Null | Key | Default | Extra |
+----------------+------------------+------+-----+---------+-------+
| pt_namespace   | int(11)          | NO   |     | 0       |       |
| pt_title       | varbinary(255)   | NO   |     |         |       |
| pt_user        | int(10) unsigned | NO   |     | 0       |       |
| pt_reason      | tinyblob         | YES  |     | NULL    |       |
| pt_timestamp   | varbinary(14)    | NO   |     |         |       |
| pt_expiry      | varbinary(14)    | NO   |     |         |       |
| pt_create_perm | varbinary(60)    | NO   |     |         |       |
+----------------+------------------+------+-----+---------+-------+


MediaWiki version: 1.12

DESCRIBE protected_titles; in version 1.12 gives the following:

+----------------+------------------+------+-----+---------+-------+
| Field          | Type             | Null | Key | Default | Extra |
+----------------+------------------+------+-----+---------+-------+
| pt_namespace   | int(11)          | NO   | PRI |         |       | 
| pt_title       | varchar(255)     | NO   | PRI |         |       | 
| pt_user        | int(10) unsigned | NO   |     |         |       | 
| pt_reason      | tinyblob         | YES  |     | NULL    |       | 
| pt_timestamp   | binary(14)       | NO   | MUL |         |       | 
| pt_expiry      | varbinary(14)    | NO   |     |         |       | 
| pt_create_perm | varbinary(60)    | NO   |     |         |       | 
+----------------+------------------+------+-----+---------+-------+
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
Language: English  • 日本語 • polski