Manuel:table protected_titles
Appearance
↑ Manuel:Contenu | Schéma de base de données MédiaWiki | table protected_titles |
Version de MediaWiki : | ≥ 1.12 |
La table protected_titles contient Protection des pages non existantes. Les restrictions sur les pages existantes sont stockées dans la table page_restrictions .
La liste des pages protégées se trouve sur Special:Protectedtitles.
Champs
pt_namespace
pt_title
pt_user
ID d'utilisateur de l'utilisateur qui a protégé le titre de la page.
pt_reason
Version de MediaWiki : | ≤ 1.32 |
Commentaire de la protection.
(obsolète)
Utilisez les tables pt_reason_id
et comment
à la place.
pt_reason_id
Version de MediaWiki : | ≥ 1.30 |
Ceci est une clé externe vers comment_id dans la table comment .
pt_timestamp
Timestamp où la protection a été décidée
pt_expiry
Date à laquelle la protection cessera.
pt_create_perm
Résumé du schéma
Version de MediaWiki : | ≥ 1.36 |
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_id | bigint(20) unsigned | NO | | NULL | | | pt_timestamp | binary(14) | NO | MUL | NULL | | | pt_expiry | varbinary(14) | NO | | NULL | | | pt_create_perm | varbinary(60) | NO | | NULL | | +----------------+---------------------+------+-----+---------+-------+
Versions de MediaWiki : | 1.33 – 1.35 |
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_id | bigint(20) unsigned | NO | | NULL | | | pt_timestamp | binary(14) | NO | MUL | NULL | | | pt_expiry | varbinary(14) | NO | | | | | pt_create_perm | varbinary(60) | NO | | NULL | | +----------------+---------------------+------+-----+---------+-------+
Versions de MediaWiki : | 1.30 – 1.32 |
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 | varbinary(767) | YES | | | | | pt_reason_id | bigint(20) unsigned | NO | | 0 | | | pt_timestamp | binary(14) | NO | MUL | NULL | | | pt_expiry | varbinary(14) | NO | | | | | pt_create_perm | varbinary(60) | NO | | NULL | | +----------------+---------------------+------+-----+---------+-------+
Versions de MediaWiki : | 1.25 – 1.29 |
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 | varbinary(767) | YES | | NULL | | | pt_timestamp | binary(14) | NO | MUL | NULL | | | pt_expiry | varbinary(14) | NO | | | | | pt_create_perm | varbinary(60) | NO | | NULL | | +----------------+------------------+------+-----+---------+-------+
Versions de MediaWiki : | 1.12 – 1.24 |
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 | | +----------------+------------------+------+-----+---------+-------+
Les index
Version de MediaWiki : | ≥ 1.32 |
SHOW INDEX IN protected_titles;
+------------------+------------+--------------+--------------+--------------+-----------+-------------+----------+--------+------+------------+---------+---------------+ | Table | Non_unique | Key_name | Seq_in_index | Column_name | Collation | Cardinality | Sub_part | Packed | Null | Index_type | Comment | Index_comment | +------------------+------------+--------------+--------------+--------------+-----------+-------------+----------+--------+------+------------+---------+---------------+ | protected_titles | 0 | PRIMARY | 1 | pt_namespace | A | 0 | NULL | NULL | | BTREE | | | | protected_titles | 0 | PRIMARY | 2 | pt_title | A | 0 | NULL | NULL | | BTREE | | | | protected_titles | 1 | pt_timestamp | 1 | pt_timestamp | A | 0 | NULL | NULL | | BTREE | | | +------------------+------------+--------------+--------------+--------------+-----------+-------------+----------+--------+------+------------+---------+---------------+