Fix SQL error
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Bea 2022-10-24 21:28:32 +02:00
parent 56c8e2ee1d
commit ffcaf5e3cf
2 changed files with 5 additions and 5 deletions

View File

@ -33,7 +33,7 @@ public class NounsSetSubCommand
if(Cache.dbManager.setPlayerPronouns(sender.getName(), mainPronoun, secondaryPronoun)) {
mainPronoun = Cache.dbManager.getPronounFormat(Cache.dbManager.getPronounId(mainPronoun));
secondaryPronoun = Cache.dbManager.getPronounFormat(Cache.dbManager.getPronounId(secondaryPronoun));

View File

@ -60,15 +60,15 @@ public class DatabaseManager
List<String> newTables = new ArrayList<>();
newTables.add("CREATE TABLE IF NOT EXISTS players (" +
"player text NOT NULL," +
"player TEXT NOT NULL," +
"main_pronoun_id INTEGER DEFAULT -1," +
"secondary_pronoun_id INTEGER DEFAULT -1" +
");");
newTables.add("CREATE TABLE IF NOT EXISTS pronouns (" +
"pronoun text," +
"format text," +
"\"id integer" +
"pronoun TEXT," +
"format TEXT," +
"id INTEGER" +
");");
for(String sql : newTables)