Jump to content

Příručka:Databázová tabulka image_comment_temp

From mediawiki.org
This page is a translated version of the page Manual:Image comment temp table and the translation is 100% complete.
Manuál:Obsah MediaWiki schéma databáze Tabulka image_comment_temp
Verze MediaWiki:
1.30 – 1.31

Tabulka image_comment_temp je dočasná tabulka vytvářející vztah mezi každým řádkem tabulky image a řádkem tabulky comment. Byla vytvořena, aby se zabránilo blokování změny tabulky image. Na velkých wikinách, jako je Wikimedia Commons, je změna tabulky image procesem dlouhým na měsíce. Tato tabulka byla vytvořena, aby se zabránilo takové změně, a byla sloučena zpět do tabulky image, jakmile bylo vytvořeno pole image.img_description_id.

Tato tabulka byla představena na Gerrit change 357892. Podívejte se také na tabulku revision_comment_temp .

V MediaWiki 1.32 je tabulka image_comment_temp sloučena do tabulky image s úkol T188132. Poté bude tabulka image_comment_temp odstraněna.

Pole

imgcomment_name

Klíčováno na image.img_name

imgcomment_description_id

Klíčováno na comment.comment_id

Přehled změn ve schématu tabulky

Verze MediaWiki:
1.30 – 1.31

DESCRIBE image_comment_temp;

+---------------------------+---------------------+------+-----+---------+-------+
| Field                     | Type                | Null | Key | Default | Extra |
+---------------------------+---------------------+------+-----+---------+-------+
| imgcomment_name           | varbinary(255)      | NO   | PRI | NULL    |       |
| imgcomment_description_id | bigint(20) unsigned | NO   | PRI | NULL    |       |
+---------------------------+---------------------+------+-----+---------+-------+

Indexy

Verze MediaWiki:
1.30 – 1.31

SHOW INDEX IN image_comment_temp;

+--------------------+------------+-----------------+--------------+---------------------------+-----------+-------------+----------+--------+------+------------+---------+---------------+
| Table              | Non_unique | Key_name        | Seq_in_index | Column_name               | Collation | Cardinality | Sub_part | Packed | Null | Index_type | Comment | Index_comment |
+--------------------+------------+-----------------+--------------+---------------------------+-----------+-------------+----------+--------+------+------------+---------+---------------+
| image_comment_temp |          0 | PRIMARY         |            1 | imgcomment_name           | A         |           0 |     NULL | NULL   |      | BTREE      |         |               |
| image_comment_temp |          0 | PRIMARY         |            2 | imgcomment_description_id | A         |           0 |     NULL | NULL   |      | BTREE      |         |               |
| image_comment_temp |          0 | imgcomment_name |            1 | imgcomment_name           | A         |           0 |     NULL | NULL   |      | BTREE      |         |               |
+--------------------+------------+-----------------+--------------+---------------------------+-----------+-------------+----------+--------+------+------------+---------+---------------+