Manuel:table imagelinks
Appearance
La table imagelinks enregistre les inclusions de fichiers. Ceci est valable pour une variété de fonctions, depuis la mise en cache des liens dans les fonctions de sortie, jusqu'à la page des Pages liées. Notez que certaines images peuvent être sur un dépôt de fichiers externe. Dans le cas des wikis Wikimedia, cette table contient les fichiers hébergés sur Wikimedia Commons.
Champs
il_from
Le page_id de la page pointée par le lien.
il_from_namespace
| Version de MediaWiki : | ≥ 1.24 |
page_namespace de la page qui contient le lien.
il_to
Le titre du fichier lié.
Résumé du schéma
| Version de MediaWiki : | ≥ 1.36 |
DESCRIBE imagelinks;
+-------------------+------------------+------+-----+---------+-------+ | Field | Type | Null | Key | Default | Extra | +-------------------+------------------+------+-----+---------+-------+ | il_from | int(10) unsigned | NO | PRI | 0 | | | il_to | varbinary(255) | NO | PRI | | | | il_from_namespace | int(11) | NO | MUL | 0 | | +-------------------+------------------+------+-----+---------+-------+
| Versions de MediaWiki : | 1.26 – 1.35 |
DESCRIBE imagelinks;
+-------------------+------------------+------+-----+---------+-------+ | Field | Type | Null | Key | Default | Extra | +-------------------+------------------+------+-----+---------+-------+ | il_from | int(10) unsigned | NO | PRI | 0 | | | il_from_namespace | int(11) | NO | MUL | 0 | | | il_to | varbinary(255) | NO | PRI | | | +-------------------+------------------+------+-----+---------+-------+
| Versions de MediaWiki : | 1.24 – 1.25 |
DESCRIBE imagelinks;
+-------------------+------------------+------+-----+---------+-------+ | Field | Type | Null | Key | Default | Extra | +-------------------+------------------+------+-----+---------+-------+ | il_from | int(10) unsigned | NO | PRI | 0 | | | il_from_namespace | int(11) | NO | | 0 | | | il_to | varbinary(255) | NO | PRI | | | +-------------------+------------------+------+-----+---------+-------+
| Versions de MediaWiki : | 1.10 – 1.23 |
DESCRIBE imagelinks;
+---------+---------------------+------+-----+---------+-------+ | Field | Type | Null | Key | Default | Extra | +---------+---------------------+------+-----+---------+-------+ | il_from | int(10) unsigned | NO | PRI | 0 | | | il_to | varchar(255) binary | NO | PRI | NULL | | +---------+---------------------+------+-----+---------+-------+
| Versions de MediaWiki : | 1.3 – 1.9 |
DESCRIBE imagelinks;
+---------+---------------------+------+-----+---------+-------+ | Field | Type | Null | Key | Default | Extra | +---------+---------------------+------+-----+---------+-------+ | il_from | int(8) unsigned | NO | PRI | 0 | | | il_to | varchar(255) binary | NO | PRI | NULL | | +---------+---------------------+------+-----+---------+-------+
| Versions de MediaWiki : | 1.1 – 1.2 |
DESCRIBE imagelinks;
+---------+---------------------+------+-----+---------+-------+ | Field | Type | Null | Key | Default | Extra | +---------+---------------------+------+-----+---------+-------+ | il_from | varchar(255) binary | NO | PRI | NULL | | | il_to | varchar(255) binary | NO | PRI | NULL | | +---------+---------------------+------+-----+---------+-------+
Les index
| Version de MediaWiki : | ≥ 1.30 |
SHOW INDEX IN imagelinks;
+------------+------------+------------------------+--------------+-------------------+-----------+-------------+----------+--------+------+------------+---------+---------------+ | Table | Non_unique | Key_name | Seq_in_index | Column_name | Collation | Cardinality | Sub_part | Packed | Null | Index_type | Comment | Index_comment | +------------+------------+------------------------+--------------+-------------------+-----------+-------------+----------+--------+------+------------+---------+---------------+ | imagelinks | 0 | PRIMARY | 1 | il_from | A | 0 | NULL | NULL | | BTREE | | | | imagelinks | 0 | PRIMARY | 2 | il_to | A | 0 | NULL | NULL | | BTREE | | | | imagelinks | 1 | il_to | 1 | il_to | A | 0 | NULL | NULL | | BTREE | | | | imagelinks | 1 | il_to | 2 | il_from | A | 0 | NULL | NULL | | BTREE | | | | imagelinks | 1 | il_backlinks_namespace | 1 | il_from_namespace | A | 0 | NULL | NULL | | BTREE | | | | imagelinks | 1 | il_backlinks_namespace | 2 | il_to | A | 0 | NULL | NULL | | BTREE | | | | imagelinks | 1 | il_backlinks_namespace | 3 | il_from | A | 0 | NULL | NULL | | BTREE | | | +------------+------------+------------------------+--------------+-------------------+-----------+-------------+----------+--------+------+------------+---------+---------------+