This commit is contained in:
parent
56c8e2ee1d
commit
ffcaf5e3cf
@ -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));
|
||||
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user