maintenance/fixUserRegistration.php File Reference

Fix the user_registration field. More...

Go to the source code of this file.

Variables

 $fname = 'fixUserRegistration.php'
 $dbr = wfGetDB( DB_SLAVE )
 $dbw = wfGetDB( DB_MASTER )
 $res = $dbr->select( 'user', 'user_id', 'user_registration IS NULL', $fname )
while($row=$dbr->fetchObject($res))
print 
n


Detailed Description

Fix the user_registration field.

In particular, for values which are NULL, set them to the date of the first edit

Definition in file fixUserRegistration.php.


Variable Documentation

$dbr = wfGetDB( DB_SLAVE )

Definition at line 14 of file fixUserRegistration.php.

$dbw = wfGetDB( DB_MASTER )

Definition at line 15 of file fixUserRegistration.php.

$fname = 'fixUserRegistration.php'

Definition at line 12 of file fixUserRegistration.php.

$res = $dbr->select( 'user', 'user_id', 'user_registration IS NULL', $fname )

Definition at line 18 of file fixUserRegistration.php.

while ($row=$dbr->fetchObject($res)) print n

Definition at line 20 of file fixUserRegistration.php.


Generated on Sat Sep 5 02:08:27 2009 for MediaWiki by  doxygen 1.5.9