possible fix for null migration error
This commit is contained in:
parent
48adfc19af
commit
0a52676042
@ -36,7 +36,7 @@ INSERT INTO DiscordUser
|
||||
DROP TABLE DiscordUser_tmp;";
|
||||
public static string TotalXp { get; } =
|
||||
@"UPDATE DiscordUser
|
||||
SET TotalXp = (SELECT SUM(Xp) FROM UserXpStats WHERE UserId = DiscordUser.UserId)";
|
||||
SET TotalXp = ifnull((SELECT SUM(Xp) FROM UserXpStats WHERE UserId = DiscordUser.UserId), 0)";
|
||||
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user