Don't update user.username from an empty profile.name in 1525 update

This commit is contained in:
Hypolite Petovan 2023-08-20 15:12:02 -04:00
parent 1edb7b6464
commit e9861b11f3

View file

@ -1356,7 +1356,8 @@ function update_1525(): int
if (!DBA::e('UPDATE `user` u if (!DBA::e('UPDATE `user` u
JOIN `profile` p JOIN `profile` p
ON p.`uid` = u.`uid` ON p.`uid` = u.`uid`
SET u.`username` = p.`name`')) { SET u.`username` = p.`name`
WHERE p.`name` != ""')) {
return Update::FAILED; return Update::FAILED;
} }