Manual:Content models table/cs

Tabulka content_models je normalizační tabulka pro názvy modelů obsahu. Odkazují se na ně z tabulky.

In PHP code, normalization is managed via.

It was introduced in MediaWiki 1.31 as part of the project; see  for details. During migration from older versions, the table is populated by (run automatically by the upgrade script).

model_id
Primární klíč.

model_name
To be documented.



Přehled změn ve schématu tabulky
++---+--+-+-++ ++---+--+-+-++ ++---+--+-+-++
 * Field     | Type          | Null | Key | Default | Extra          |
 * model_id  | int(11)       | NO   | PRI | NULL    | auto_increment |
 * model_name | varbinary(64) | NO  | UNI | NULL    |                |

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

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