From 7fad1f993f31061e00baee0a47a4dda033d2ed45 Mon Sep 17 00:00:00 2001 From: Leomixer17 Date: Thu, 6 Sep 2018 17:25:39 +0200 Subject: [PATCH] Update SQLite.java --- src/at/pcgamingfreaks/MinePacks/Database/SQLite.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/at/pcgamingfreaks/MinePacks/Database/SQLite.java b/src/at/pcgamingfreaks/MinePacks/Database/SQLite.java index 56fcb6c..038e48a 100644 --- a/src/at/pcgamingfreaks/MinePacks/Database/SQLite.java +++ b/src/at/pcgamingfreaks/MinePacks/Database/SQLite.java @@ -97,7 +97,7 @@ protected void checkDB() { try(Connection connection = getConnection(); Statement stmt = connection.createStatement()) { - stmt.execute("CREATE TABLE IF NOT EXISTS `backpack_players` (`player_id` INTEGER PRIMARY KEY AUTOINCREMENT, `name` CHAR(16) NOT NULL" + ((useUUIDs) ? " , `uuid` CHAR(32)" : "") + " UNIQUE);"); + stmt.execute("CREATE TABLE IF NOT EXISTS `backpack_players` (`player_id` INTEGER PRIMARY KEY AUTOINCREMENT, `name` VARCHAR(16) NOT NULL" + ((useUUIDs) ? " , `uuid` CHAR(32)" : "") + " UNIQUE);"); if(useUUIDs) { try @@ -145,4 +145,4 @@ public void run() runStatementAsync(queryUpdatePlayerAdd, player.getName()); } } -} \ No newline at end of file +}