aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/upgrade.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/upgrade.php')
-rw-r--r--phpBB/upgrade.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/phpBB/upgrade.php b/phpBB/upgrade.php
index 942622e379..e10b3be349 100644
--- a/phpBB/upgrade.php
+++ b/phpBB/upgrade.php
@@ -716,6 +716,13 @@ if( !empty($next) )
end_step('convert_users');
case 'convert_users':
+ //
+ // Completely remove old soft-deleted users
+ //
+ $sql = "DELETE FROM " . USERS_TABLE . "
+ WHERE user_level = -1";
+ query($sql, "Couldn't delete old soft-deleted users");
+
$sql = "SELECT COUNT(*) AS total, MAX(user_id) AS maxid
FROM " . USERS_TABLE;
$result = query($sql, "Couldn't get max post_id.");