Manual:populateRecentChangesSource.php
From Linux Web Expert
<td class="mw-version-versionbox" title="<translate nowrap> The latest stable version is <tvar name=1>1.41</tvar></translate>">
<translate> ≥</translate> 1.23
<translate> MediaWiki version:</translate> |
MediaWiki file: populateRecentChangesSource.php | |
---|---|
Location: | maintenance/ |
Source code: | master • 1.41.1 • 1.40.3 • 1.39.7 |
Classes: | PopulateRecentChangesSource |
Details
populateRecentChangesSource.php file is a maintenance script to populate the rc_source
field of the recentchanges table with the data in rc_type
.
The rc_source allows specifying the type of change and for more flexibly specifying different types of RecentChange entries. For example, 'mw.edit', 'mw.log', 'mw.new' for core RecentChange types and 'wb' and 'flow' provided by extensions.
This script runs by default when you run update.php . It processes 100 items in a batch.
Options/Arguments
This script does not take any options or arguments.
Usage
php maintenance/populateRecentChangesSource.php
Terminal
$ php maintenance/populateRecentChangesSource.php ....... Done.
Whenever the script runs, it makes a note in the database and will not run again. If you want to run the script again, run the command with the --force option.