From: Brion Vibber Date: Sat, 25 Jun 2005 23:12:18 +0000 (+0000) Subject: Copy querycache: encoding and a table definition change X-Git-Tag: 1.5.0beta1~18 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/%22%24ccApp/ecrire?a=commitdiff_plain;h=ac2cce0324c92dfe5e4902c5c6ac385c6400db3a;p=lhc%2Fweb%2Fwiklou.git Copy querycache: encoding and a table definition change --- diff --git a/maintenance/upgrade1_5.php b/maintenance/upgrade1_5.php index fdfc8b3c1f..d86d0e9f88 100644 --- a/maintenance/upgrade1_5.php +++ b/maintenance/upgrade1_5.php @@ -55,7 +55,8 @@ class FiveUpgrade { 'imagelinks', 'categorylinks', 'ipblocks', - 'recentchanges' ); + 'recentchanges', + 'querycache' ); foreach( $tables as $table ) { if( $this->doing( $table ) ) { $method = 'upgrade' . ucfirst( $table ); @@ -1131,6 +1132,32 @@ END; $this->copyTable( 'recentchanges', $tabledef, $fields ); } + function upgradeQuerycache() { + // There's a format change in the namespace field + $tabledef = << MW_UPGRADE_COPY, + 'qc_value' => MW_UPGRADE_COPY, + 'qc_namespace' => MW_UPGRADE_COPY, + 'qc_title' => MW_UPGRADE_ENCODE ); + $this->copyTable( 'querycache', $tabledef, $fields ); + } + /** * Rename all our temporary tables into final place. * We've left things in place so a read-only wiki can continue running