Manual:Module deps table

From MediaWiki.org
Jump to: navigation, search
Language: English
Manual:Contents MediaWiki database layout module_deps table


MediaWiki version: 1.17


module_deps table is for caching which local files a skin/module depends on that aren't registered directly.

Currently used for tracking images and LESS files that CSS depends on.

Fields[edit | edit source]

md_module[edit | edit source]

Module name

md_skin[edit | edit source]

Skin name

md_deps[edit | edit source]

JSON blob with file dependencies. Note: 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 (phabricator:T37472).

Until this bug is solved, you can use this workaround to manually fix wrong entries in the module_deps table:

SET @OLD='wiki.old-domain.org';
SET @NEW='wiki.new-domain.org';
 
UPDATE `module_deps` SET `md_deps` = REPLACE( `md_deps`, @OLD, @NEW );

This can be used to update wrong path segments and to fix the error.

Versions[edit | edit source]

MediaWiki version: 1.19


mysql> 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    |       |
+-----------+----------------+------+-----+---------+-------+
Databases Engines: MySQLOraclePostgreSQLSQLite
Technical documentation: Schema (tables) – API property associationsField prefixesPrimary key storage in other fieldsWikimedia extension tables
Configuration: SettingsSharing
Development: AccessOptimizationPolicyUpdaterExtension schema updatesPatch file
Core tables: archivecategorycategorylinkschange_tagconfigexternallinksfilearchivehitcounterimageimagelinksinterwikiiwlinksipblocksjobl10n_cachelanglinkslogginglog_searchmsg_resourcemsg_resource_linksmodule_depsobjectcacheoldimagepagepagelinkspage_propspage_restrictionsprotected_titlesquerycachequerycachetwoquerycache_inforecentchangesredirectrevisionsearchindexsitessite_statstag_summarytemplatelinkstexttranscacheupdateloguploadstashuseruser_former_groupsuser_groupsuser_newtalkuser_propertiesvalid_tagwatchlist