Skip to content

Commit

Permalink
Fix max lenght username allowed
Browse files Browse the repository at this point in the history
  • Loading branch information
Corenb authored Jan 19, 2021
1 parent a840285 commit be930c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/eu/horyzon/premiumconnector/sql/DataSource.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -59,4 +59,4 @@ private void initDatabase() throws SQLException {
public String getTable() {
return table;
}
}
}

1 comment on commit be930c4

@Corenb
Copy link
Owner Author

@Corenb Corenb commented on be930c4 Jan 27, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix #13

Please sign in to comment.