Handbuch:populateContentModel.php
Appearance
Diese Funktion wurde in der Version MediaWiki 1.35 aus dem MediaWiki-Kern entfernt.
Auf populateContentTables.php findet sich eine alternative Möglichkeit, diese Funktion zu nutzen. |
| MediaWiki-Datei: populateContentModel.php | |
|---|---|
| Speicherort: | maintenance/ |
| Quellcode: | master • 1.44.2 • 1.43.5 • 1.39.15 |
| Klassen: | PopulateContentModel |
Details
populateContentModel.php file is a maintenance script to populate the various fields that describe the content model of pages and revisions.
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.
Verwendung
php maintenance/populateContentModel.php --ns=1 --table=page
Skriptabhängige Parameter
| Option/Parameter | Beschreibung |
|---|---|
| --ns | Namespace number to run in, or "all" for all namespaces
|
| --table | Table to run in. Must be page, revision or archive
|