手册:MysqlUpdater.php

From mediawiki.org
This page is a translated version of the page Manual:MysqlUpdater.php and the translation is 100% complete.

详情

MysqlUpdater类具有MySQL更新列表和特定于MySQL的更新函数。 该类包含受保护的函数getCoreUpdateList,它获取要在数据库上执行的更新数组。 在该文件中,此数组的内容按MediaWiki版本号顺序组织。 有addTable、addField、addIndex、dropTable、dropField、dropIndex等元素,用于指定要更改的内容以及实现更改的SQL文件。

更新程序运行许多维护脚本,通常采用$task = $this->maintenance->runChild( 'UpdateFoo' );格式