From be930c4daa264dfa57032429407c8fd64315c283 Mon Sep 17 00:00:00 2001 From: Corentin Boiteau Date: Tue, 19 Jan 2021 17:25:59 +0100 Subject: [PATCH] Fix max lenght username allowed --- src/main/java/eu/horyzon/premiumconnector/sql/DataSource.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/eu/horyzon/premiumconnector/sql/DataSource.java b/src/main/java/eu/horyzon/premiumconnector/sql/DataSource.java index b7c6091..76f1fc8 100644 --- a/src/main/java/eu/horyzon/premiumconnector/sql/DataSource.java +++ b/src/main/java/eu/horyzon/premiumconnector/sql/DataSource.java @@ -10,7 +10,7 @@ import eu.horyzon.premiumconnector.PremiumConnector; public class DataSource { - private static String SQL_CREATE = "CREATE TABLE IF NOT EXISTS %s (Name VARCHAR(15) NOT NULL, Premium BOOLEAN, PRIMARY KEY (Name));"; + private static String SQL_CREATE = "CREATE TABLE IF NOT EXISTS %s (Name VARCHAR(16) NOT NULL, Premium BOOLEAN, PRIMARY KEY (Name));"; private String table; private HikariDataSource hikari; @@ -59,4 +59,4 @@ private void initDatabase() throws SQLException { public String getTable() { return table; } -} \ No newline at end of file +}