* (bug 13820) Fix updater for rev_parent_id population
[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 define( 'BATCH_SIZE', 200 );
10
11 require_once 'commandLine.inc';
12 require_once 'populateParentId.inc';
13
14 $db =& wfGetDB( DB_MASTER );
15 if ( !$db->tableExists( 'revision' ) ) {
16 echo "revision table does not exist\n";
17 exit( 1 );
18 }
19
20 populate_rev_parent_id( $db );