Revert r52336 "Merge maintenance-work branch:"
[lhc/web/wiklou.git] / maintenance / populateParentId.php
1 <?php
2
3 /*
4 * Makes the required database updates for rev_parent_id
5 * to be of any use. It can be used for some simple tracking
6 * and to find new page edits by users.
7 */
8
9 require_once 'commandLine.inc';
10 require_once 'populateParentId.inc';
11
12 $db =& wfGetDB( DB_MASTER );
13 if ( !$db->tableExists( 'revision' ) ) {
14 echo "revision table does not exist\n";
15 exit( 1 );
16 }
17
18 populate_rev_parent_id( $db );