During the upgrade there is a column rename from user_rank to rank. But this rename is after the following two updates.
$sql = "UPDATE dizkus_users SET rank=NULL WHERE rank=0"; $stmt = $connection->prepare($sql); $stmt->execute(); // set rank to NULL where rank no longer available $sql = "UPDATE dizkus_users set rank=NULL WHERE rank NOT IN (SELECT DISTINCT rank_id from dizkus_ranks)"; $stmt = $connection->prepare($sql); $stmt->execute();
Hello!
During the upgrade there is a column rename from user_rank to rank. But this rename is after the following two updates.
$sql = "UPDATE dizkus_users SET rank=NULL WHERE rank=0"; $stmt = $connection->prepare($sql); $stmt->execute(); // set rank to NULL where rank no longer available $sql = "UPDATE dizkus_users set rank=NULL WHERE rank NOT IN (SELECT DISTINCT rank_id from dizkus_ranks)"; $stmt = $connection->prepare($sql); $stmt->execute();