mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
Delete soft-deleted users before updating user table ... Bart, please check
git-svn-id: file:///svn/phpbb/trunk@1829 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
df86b7322d
commit
52784a3c60
1 changed files with 7 additions and 0 deletions
|
@ -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.");
|
||||
|
|
Loading…
Add table
Reference in a new issue