Manual: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:
Manual:コンテンツ MediaWiki のデータベース レイアウト content_models テーブル
MediaWiki バージョン:
1.31

content_models はコンテンツ モデル名の正規化テーブルです。 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).

フィールド

model_id

主キーです。

model_name

To be documented.

スキーマの要約

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    |                |
+------------+---------------+------+-----+---------+----------------+
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    |                |
+------------+---------------+------+-----+---------+----------------+