Manual:change_tag_def/cs table
From Linux Web Expert
↑ Manuál:Obsah | <translate> MediaWiki database layout</translate> | <translate> <tvar name=1>change_tag_def/cs</tvar> table</translate> |
<translate> ≥</translate> 1.32
Gerrit change 430943<translate> MediaWiki version:</translate> |
The change_tag_def table is a table defining tag names for IDs. It also stores hit counts to avoid expensive queries on change_tag.
Pole
ctd_id
Numerical ID of the tag (change_tag.ct_tag_id refers to this)
ctd_name
Symbolic name of the tag (what would previously be put in change_tag.ct_tag)
ctd_user_defined
Whether this tag was defined manually by a privileged user using Special:Tags
ctd_count
Number of times this tag was used
Přehled změn ve schématu tabulky
<td class="mw-version-versionbox" title="<translate nowrap> The latest stable version is <tvar name=1>1.41</tvar></translate>"><translate> ≥</translate> 1.32
<translate> MediaWiki version:</translate> |
DESCRIBE change_tag_def/cs;
+------------------+---------------------+------+-----+---------+----------------+ | Field | Type | Null | Key | Default | Extra | +------------------+---------------------+------+-----+---------+----------------+ | ctd_id | int(10) unsigned | NO | PRI | NULL | auto_increment | | ctd_name | varbinary(255) | NO | UNI | NULL | | | ctd_user_defined | tinyint(1) | NO | MUL | NULL | | | ctd_count | bigint(20) unsigned | NO | MUL | 0 | | +------------------+---------------------+------+-----+---------+----------------+
Indexy
<td class="mw-version-versionbox" title="<translate nowrap> The latest stable version is <tvar name=1>1.41</tvar></translate>"><translate> ≥</translate> 1.32
<translate> MediaWiki version:</translate> |
SHOW INDEX IN change_tag_def/cs;
+----------------+------------+------------------+--------------+------------------+-----------+-------------+----------+--------+------+------------+---------+---------------+ | Table | Non_unique | Key_name | Seq_in_index | Column_name | Collation | Cardinality | Sub_part | Packed | Null | Index_type | Comment | Index_comment | +----------------+------------+------------------+--------------+------------------+-----------+-------------+----------+--------+------+------------+---------+---------------+ | change_tag_def | 0 | PRIMARY | 1 | ctd_id | A | 0 | NULL | NULL | | BTREE | | | | change_tag_def | 0 | ctd_name | 1 | ctd_name | A | 0 | NULL | NULL | | BTREE | | | | change_tag_def | 1 | ctd_count | 1 | ctd_count | A | 0 | NULL | NULL | | BTREE | | | | change_tag_def | 1 | ctd_user_defined | 1 | ctd_user_defined | A | 0 | NULL | NULL | | BTREE | | | +----------------+------------+------------------+--------------+------------------+-----------+-------------+----------+--------+------+------------+---------+---------------+