Manual:PopulateContentModel.php
Appearance
此功能已在版本MediaWiki 1.35从MediaWiki核心代码中移除。
请参见populateContentTables.php以获取使用此功能的替代方式。 |
| MediaWiki文件: populateContentModel.php | |
|---|---|
| 位置: | maintenance/ |
| 源代码: | master • 1.45.1 • 1.44.3 • 1.43.6 |
| 类: | PopulateContentModel |
细节
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
|