summaryrefslogtreecommitdiff
path: root/maintenance/populateParentId.php
blob: 01730033426373058ae56c8da46112ed3268e154 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?php

/*
 * Makes the required database updates for rev_parent_id
 * to be of any use. It can be used for some simple tracking
 * and to find new page edits by users.
 */

require_once 'commandLine.inc';
require_once 'populateParentId.inc';
	
$db =& wfGetDB( DB_MASTER );
if ( !$db->tableExists( 'revision' ) ) {
	echo "revision table does not exist\n";
	exit( 1 );
}

populate_rev_parent_id( $db );