Manual:fixUserRegistration.php

From Linux Web Expert

Revision as of 19:42, 24 February 2022 by imported>APaskulin (WMF) (Fix typo)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

<td class="mw-version-versionbox" title="<translate nowrap> The latest stable version is <tvar name=1>1.41</tvar></translate>">
<translate> ≥</translate> 1.7
<translate> MediaWiki version:</translate>

Details

fixUserRegistration.php file is a maintenance script to fix the user_registration field. Old user accounts have the user_registration field set to "NULL". This script searches for those users who are affected, and inserts the timestamp from their first edit as an estimation for the registration time into the user_registration field.

This script processes 1000 items in a batch.

Options/Arguments

This script does not take any options or arguments.

Usage

php maintenance/fixUserRegistration.php


Terminal

See also