Populate log_search during update.php run and store an update status row when we...
[lhc/web/wiklou.git] / maintenance / populateLogSearch.php
1 <?php
2 /**
3 * Makes the required database updates for Special:ProtectedPages
4 * to show all protected pages, even ones before the page restrictions
5 * schema change. All remaining page_restriction column values are moved
6 * to the new table.
7 *
8 * @file
9 * @ingroup Maintenance
10 */
11
12 require_once 'commandLine.inc';
13 require_once 'populateLogSearch.inc';
14
15 $db =& wfGetDB( DB_MASTER );
16 if ( !$db->tableExists( 'log_search' ) ) {
17 echo "log_search does not exist\n";
18 exit( 1 );
19 }
20
21 migrate_log_params( $db );