Fix winstreak sql

This commit is contained in:
Sam 2018-01-20 13:59:15 +00:00 committed by Alexander Meech
parent 8a77f53314
commit 248c109627

View File

@ -7,7 +7,7 @@ import mineplex.serverdata.database.column.ColumnInt;
class WinStreakRepository extends RepositoryBase class WinStreakRepository extends RepositoryBase
{ {
private static final String UPDATE_OR_INSERT = "INSERT INTO accountWinStreak VALUES (?,?,?) ON DUPLICATE KEY value=value+1"; private static final String UPDATE_OR_INSERT = "INSERT INTO accountWinStreak VALUES (?,?,?) ON DUPLICATE KEY UPDATE value=value+1";
private static final String DELETE = "DELETE FROM accountWinStreak WHERE accountId=? AND gameId=?"; private static final String DELETE = "DELETE FROM accountWinStreak WHERE accountId=? AND gameId=?";
WinStreakRepository() WinStreakRepository()