Jump to content

Manual:PopulateContentModel.php

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

细节

populateContentModel.php文件是一个maintenance脚本填充各种页面和版本描述的字段content model

It can populate the fields page_content_model from page, rev_content_model and rev_content_format from revision, and ar_content_model and ar_content_format from archive.

用法

php maintenance/populateContentModel.php --ns=1 --table=page

特定行为的参数

选项/参数 描述
--ns Namespace number to run in, or "all" for all namespaces
--table Table to run in. Must be page, revision or archive