From: Brion Vibber Date: Wed, 1 Dec 2004 13:56:05 +0000 (+0000) Subject: Remove odd version check in one of the updates which looks like it would break certai... X-Git-Tag: 1.5.0alpha1~1177 X-Git-Url: http://git.cyclocoop.org/%22%20%20.%20generer_url_ecrire%28%22mots_tous%22%29%20.%20%22?a=commitdiff_plain;h=1aa56ed4ca20272616a5df0599475df6742a2668;p=lhc%2Fweb%2Fwiklou.git Remove odd version check in one of the updates which looks like it would break certain upgrades. Add notice to the password updater that it's probably not going to work as-is. (It's not called.) --- diff --git a/maintenance/updaters.inc b/maintenance/updaters.inc index 8f83a480b5..e96fd75599 100644 --- a/maintenance/updaters.inc +++ b/maintenance/updaters.inc @@ -66,6 +66,8 @@ function do_revision_updates() { } function update_passwords() { + wfDebugDieBacktrace( "This function needs to be updated or removed.\n" ); + global $wgDatabase; $fname = "Update script: update_passwords()"; print "\nIt appears that you need to update the user passwords in your\n" . @@ -123,7 +125,7 @@ function do_index_update() { function do_linkscc_1_3_update() { // Update linkscc table to 1.3 schema if necessary global $wgDatabase, $wgVersion; - if( ( strpos( "1.3", $wgVersion ) === 0 ) && $wgDatabase->tableExists( "linkscc" ) + if( $wgDatabase->tableExists( "linkscc" ) && $wgDatabase->fieldExists( "linkscc", "lcc_title" ) ) { echo "Altering lcc_title field from linkscc table... "; dbsource( "maintenance/archives/patch-linkscc-1.3.sql", $wgDatabase );