possible fix for null migration error

This commit is contained in:
Master Kwoth 2017-09-13 08:12:07 +02:00
parent 48adfc19af
commit 0a52676042

View File

@ -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)";
}
}