loot tracker service: use bigint for kill id

This commit is contained in:
Adam
2020-08-15 18:40:38 -04:00
parent 549dd89f8a
commit 86713e66ee

View File

@@ -43,7 +43,7 @@ import org.sql2o.Sql2o;
public class LootTrackerService
{
private static final String CREATE_KILLS = "CREATE TABLE IF NOT EXISTS `loottracker_kills` (\n" +
" `id` int(11) NOT NULL AUTO_INCREMENT,\n" +
" `id` bigint NOT NULL AUTO_INCREMENT,\n" +
" `first_time` timestamp NOT NULL DEFAULT current_timestamp(),\n" +
" `last_time` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),\n" +
" `accountId` int(11) NOT NULL,\n" +
@@ -58,7 +58,7 @@ public class LootTrackerService
") ENGINE=InnoDB;";
private static final String CREATE_DROPS = "CREATE TABLE IF NOT EXISTS `loottracker_drops` (\n" +
" `killId` int(11),\n" +
" `killId` bigint NOT NULL,\n" +
" `itemId` int(11) NOT NULL,\n" +
" `itemQuantity` int(11) NOT NULL,\n" +
" UNIQUE INDEX idx_kill_item (`killId`, `itemId`),\n" +