From 9bca180b12dc444e0d8d6a7088f19c26f0349494 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Thu, 5 Jun 2008 20:06:12 +0000 Subject: [PATCH] use table prefix --- maintenance/updaters.inc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/maintenance/updaters.inc b/maintenance/updaters.inc index 7ffbe03ebc..c83893b2dc 100644 --- a/maintenance/updaters.inc +++ b/maintenance/updaters.inc @@ -1205,11 +1205,12 @@ function update_password_format() { echo "Updating password hash format..."; global $wgDatabase, $wgPasswordSalt; + $user = $wgDatabase->tableName( 'user' ); if ( $wgPasswordSalt ) { - $sql = "UPDATE user SET user_password=CONCAT(':B:', user_id, ':', user_password) " . + $sql = "UPDATE $user SET user_password=CONCAT(':B:', user_id, ':', user_password) " . "WHERE user_password NOT LIKE ':%'"; } else { - $sql = "UPDATE user SET user_password=CONCAT(':A:', user_password) " . + $sql = "UPDATE $user SET user_password=CONCAT(':A:', user_password) " . "WHERE user_password NOT LIKE ':%'"; } $wgDatabase->query( $sql, __METHOD__ ); -- 2.20.1