From 1aa56ed4ca20272616a5df0599475df6742a2668 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Wed, 1 Dec 2004 13:56:05 +0000 Subject: [PATCH] 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.) --- maintenance/updaters.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 ); -- 2.20.1