Open main menu

手册:tag_summary表

This page is a translated version of the page Manual:Tag summary table and the translation is 18% complete.
Other languages:
English • ‎davvisámegiella • ‎español • ‎中文 • ‎日本語
手册:目录 MediaWiki数据库布局 tag_summary table


MediaWiki版本: 1.15 – 1.32

The tag_summary table is used to pull a LIST of tags simply without ugly GROUP_CONCAT. See also the change_tag table. For background, see this announcement: "Deprecation of tag_summary table"

字段

ts_id

MediaWiki版本: 1.28

The primary key.

ts_rc_id

rc_id for the change.

ts_log_id

log_id for the change.

ts_rev_id

rev_id for the change.

ts_tags

Comma-separated list of tags.

Schema summary

MediaWiki版本: 1.30 – 1.32

DESCRIBE tag_summary;

+-----------+------------------+------+-----+---------+----------------+
| Field     | Type             | Null | Key | Default | Extra          |
+-----------+------------------+------+-----+---------+----------------+
| ts_id     | int(10) unsigned | NO   | PRI | NULL    | auto_increment |
| ts_rc_id  | int(11)          | YES  | UNI | NULL    |                |
| ts_log_id | int(10) unsigned | YES  | UNI | NULL    |                |
| ts_rev_id | int(10) unsigned | YES  | UNI | NULL    |                |
| ts_tags   | blob             | NO   |     | NULL    |                |
+-----------+------------------+------+-----+---------+----------------+
MediaWiki版本: 1.28 – 1.29

DESCRIBE tag_summary;

+-----------+------------------+------+-----+---------+----------------+
| Field     | Type             | Null | Key | Default | Extra          |
+-----------+------------------+------+-----+---------+----------------+
| ts_id     | int(10) unsigned | NO   | PRI | NULL    | AUTO_INCREMENT |
| ts_rc_id  | int(11)          | YES  | UNI | NULL    |                |
| ts_log_id | int(11)          | YES  | UNI | NULL    |                |
| ts_rev_id | int(11)          | YES  | UNI | NULL    |                |
| ts_tags   | blob             | NO   |     | NULL    |                |
+-----------+------------------+------+-----+---------+----------------+
MediaWiki版本: 1.15 – 1.27

DESCRIBE tag_summary;

+-----------+---------+------+-----+---------+-------+
| Field     | Type    | Null | Key | Default | Extra |
+-----------+---------+------+-----+---------+-------+
| ts_rc_id  | int(11) | YES  | UNI | NULL    |       | 
| ts_log_id | int(11) | YES  | UNI | NULL    |       | 
| ts_rev_id | int(11) | YES  | UNI | NULL    |       | 
| ts_tags   | blob    | NO   |     | NULL    |       | 
+-----------+---------+------+-----+---------+-------+