Manual:content_models/fr table

From Linux Web Expert

The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.


Manuel:Contenu <translate> MediaWiki database layout</translate> <translate> <tvar name=1>content_models/fr</tvar> table</translate>
<td class="mw-version-versionbox" title="<translate nowrap> The latest stable version is <tvar name=1>1.41</tvar></translate>">
<translate> ≥</translate> 1.31
<translate> MediaWiki version:</translate>

La table content_models est une table de normalisation pour les moms des modèles de contenu. Ils sont référencés à partir de la table content .

Dans le code PHP, la normalisation est gérée par NameTableStore .

Elle a été introduite en MediaWiki 1.31 comme partie du projet Multi-Content Revisions ; voir Multi-Content Revisions/Content Meta-Data pour les détails. Pendant la migration à partir des versions plus anciennes, la table est remplie par populateContentTables.php (lancé automatiquement par le script de mise à jour).

Champs

model_id

Clé primaire.

model_name

To be documented.

Résumé du schéma

<td class="mw-version-versionbox" title="<translate nowrap> The latest stable version is <tvar name=1>1.41</tvar></translate>">
<translate> ≥</translate> 1.36
<translate> MediaWiki version:</translate>

DESCRIBE content_models/fr;

+------------+---------------+------+-----+---------+----------------+
| Field      | Type          | Null | Key | Default | Extra          |
+------------+---------------+------+-----+---------+----------------+
| model_id   | int(11)       | NO   | PRI | NULL    | auto_increment |
| model_name | varbinary(64) | NO   | UNI | NULL    |                |
+------------+---------------+------+-----+---------+----------------+
<td class="mw-version-versionbox" title="<translate nowrap> MediaWiki <tvar name=1>1.35</tvar> is unsupported version</translate>">
1.31 – 1.35
<translate> MediaWiki versions:</translate>

DESCRIBE content_models/fr;

+------------+---------------+------+-----+---------+----------------+
| Field      | Type          | Null | Key | Default | Extra          |
+------------+---------------+------+-----+---------+----------------+
| model_id   | smallint(6)   | NO   | PRI | NULL    | auto_increment |
| model_name | varbinary(64) | NO   | UNI | NULL    |                |
+------------+---------------+------+-----+---------+----------------+

Les index

<td class="mw-version-versionbox" title="<translate nowrap> The latest stable version is <tvar name=1>1.41</tvar></translate>">
<translate> ≥</translate> 1.31
<translate> MediaWiki version:</translate>

SHOW INDEX IN content_models/fr;

+----------------+------------+------------+--------------+-------------+-----------+-------------+----------+--------+------+------------+---------+---------------+
| Table          | Non_unique | Key_name   | Seq_in_index | Column_name | Collation | Cardinality | Sub_part | Packed | Null | Index_type | Comment | Index_comment |
+----------------+------------+------------+--------------+-------------+-----------+-------------+----------+--------+------+------------+---------+---------------+
| content_models |          0 | PRIMARY    |            1 | model_id    | A         |           0 |     NULL | NULL   |      | BTREE      |         |               |
| content_models |          0 | model_name |            1 | model_name  | A         |           0 |     NULL | NULL   |      | BTREE      |         |               |
+----------------+------------+------------+--------------+-------------+-----------+-------------+----------+--------+------+------------+---------+---------------+