Manual:module_deps テーブル

From mediawiki.org
This page is a translated version of the page Manual:Module deps table and the translation is 62% complete.
Manual:コンテンツ MediaWiki のデータベース レイアウト module_deps テーブル
MediaWiki バージョン:
1.17

module_deps テーブルは、直接登録されない外装/モジュールが依存するローカル ファイルのキャッシュ用です。

現時点では、CSS が依存する画像ファイルおよび LESS ファイルの追跡に使用されます。

フィールド

md_module

モジュール名

md_skin

外装名

md_deps

JSON blob with file dependencies.

Contains absolute file paths, which are used to locate the according files. These paths will break when the wiki is e.g. moved to another folder or to another server.

Since MediaWiki 1.25 (phabricator:T37472), update.php now deletes the contents of the module_deps table, thus clearing the cache. For versions of MediaWiki which do not yet have this fix in update.php, the workaround is to manually delete the contents of the module_deps table.

スキーマの要約

MediaWiki バージョン:
1.17

DESCRIBE module_deps;

+-----------+----------------+------+-----+---------+-------+
| Field     | Type           | Null | Key | Default | Extra |
+-----------+----------------+------+-----+---------+-------+
| md_module | varbinary(255) | NO   | PRI | NULL    |       |
| md_skin   | varbinary(32)  | NO   | PRI | NULL    |       |
| md_deps   | mediumblob     | NO   |     | NULL    |       |
+-----------+----------------+------+-----+---------+-------+

インデックス

MediaWiki バージョン:
1.30

SHOW INDEX IN module_deps;

+-------------+------------+----------+--------------+-------------+-----------+-------------+----------+--------+------+------------+---------+---------------+
| Table       | Non_unique | Key_name | Seq_in_index | Column_name | Collation | Cardinality | Sub_part | Packed | Null | Index_type | Comment | Index_comment |
+-------------+------------+----------+--------------+-------------+-----------+-------------+----------+--------+------+------------+---------+---------------+
| module_deps |          0 | PRIMARY  |            1 | md_module   | A         |           0 |     NULL | NULL   |      | BTREE      |         |               |
| module_deps |          0 | PRIMARY  |            2 | md_skin     | A         |           0 |     NULL | NULL   |      | BTREE      |         |               |
+-------------+------------+----------+--------------+-------------+-----------+-------------+----------+--------+------+------------+---------+---------------+