rework database to use json string instead of dataclass dump. Prevents failed decodings, makes contents searchable, if needed

This commit is contained in:
2025-05-13 11:37:25 +02:00
parent 8f90247e98
commit 99b9f50784
2 changed files with 28 additions and 16 deletions

View File

@@ -17,7 +17,7 @@ CREATE_TABLE_APPARAT = """CREATE TABLE semesterapparat (
)"""
CREATE_TABLE_MEDIA = """CREATE TABLE media (
id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
bookdata BLOB,
bookdata TEXT,
app_id INTEGER,
prof_id INTEGER,
deleted INTEGER DEFAULT (0),