From 7be02172a657b1e01158b61549fe5c6d35f59288 Mon Sep 17 00:00:00 2001 From: Wivik <48727868+Wivik@users.noreply.github.com> Date: Sun, 21 May 2023 15:20:16 +0200 Subject: [PATCH] fix: missing characters table in savefile --- utils/db.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/utils/db.py b/utils/db.py index 499037a..a840c74 100644 --- a/utils/db.py +++ b/utils/db.py @@ -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)