Fix SQL error
continuous-integration/drone/push Build is passing Details

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)) { if(Cache.dbManager.setPlayerPronouns(sender.getName(), mainPronoun, secondaryPronoun)) {
mainPronoun = Cache.dbManager.getPronounFormat(Cache.dbManager.getPronounId(mainPronoun)); mainPronoun = Cache.dbManager.getPronounFormat(Cache.dbManager.getPronounId(mainPronoun));
secondaryPronoun = Cache.dbManager.getPronounFormat(Cache.dbManager.getPronounId(secondaryPronoun)); secondaryPronoun = Cache.dbManager.getPronounFormat(Cache.dbManager.getPronounId(secondaryPronoun));

View File

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