summaryrefslogtreecommitdiff
path: root/maintenance/populateParentId.php
diff options
context:
space:
mode:
Diffstat (limited to 'maintenance/populateParentId.php')
-rw-r--r--maintenance/populateParentId.php18
1 files changed, 18 insertions, 0 deletions
diff --git a/maintenance/populateParentId.php b/maintenance/populateParentId.php
new file mode 100644
index 00000000..01730033
--- /dev/null
+++ b/maintenance/populateParentId.php
@@ -0,0 +1,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 );