Manual:MysqlUpdater.php/zh
MysqlUpdater.php | |
---|---|
位置: | includes/installer/ |
master • 1.43.1 • 1.42.6 • 1.39.12 | |
MysqlUpdater |
详情
MysqlUpdater类具有MySQL更新列表和特定于MySQL的更新函数。 该类包含受保护的函数getCoreUpdateList,它获取要在数据库上执行的更新数组。 在该文件中,此数组的内容按MediaWiki版本号顺序组织。 有addTable、addField、addIndex、dropTable、dropField、dropIndex等元素,用于指定要更改的内容以及实现更改的SQL文件。
更新程序运行许多维护脚本,通常采用$task = $this->maintenance->runChild( 'UpdateFoo' );
格式