Skip to content

Commit

Permalink
fix: missing characters table in savefile
Browse files Browse the repository at this point in the history
  • Loading branch information
Wivik committed May 21, 2023
1 parent ebdf4eb commit 7be0217
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions utils/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,15 @@ def create_save_database(save_file, logger):
UNIQUE("save_id","location")
)
''')
c.execute('''
CREATE TABLE "characters" (
"id" INTEGER,
"save_id" INTEGER,
"character_id" INTEGER,
PRIMARY KEY("id" AUTOINCREMENT),
UNIQUE("save_id","character_id")
)
''')
conn.commit()
except Error as e:
logger.error(e)
Expand Down

0 comments on commit 7be0217

Please sign in to comment.