Manuel:table content_models

From mediawiki.org
Jump to navigation Jump to search
This page is a translated version of the page Manual:Content models table and the translation is 83% complete.
Other languages:
Manuel:Contenu Schéma de base de données MédiaWiki table content_models
Version de MediaWiki :
1.31

La table content_models est une table de normalisation pour les moms des modèles de contenu. They are referenced from the content table.

In PHP code, normalization is managed via NameTableStore .

It was introduced in MediaWiki 1.31 as part of the Multi-Content Revisions project; see Multi-Content Revisions/Content Meta-Data for details. During migration from older versions, the table is populated by populateContentTables.php (run automatically by the upgrade script).

Champs

model_id

Clé primaire.

model_name

To be documented.

Résumé du schéma

Version de MediaWiki :
1.36

DESCRIBE content_models;

+------------+---------------+------+-----+---------+----------------+
| Field      | Type          | Null | Key | Default | Extra          |
+------------+---------------+------+-----+---------+----------------+
| model_id   | int(11)       | NO   | PRI | NULL    | auto_increment |
| model_name | varbinary(64) | NO   | UNI | NULL    |                |
+------------+---------------+------+-----+---------+----------------+
Versions de MediaWiki :
1.31 – 1.35

DESCRIBE content_models;

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