Feat: migration on startup

This commit is contained in:
Grail Finder
2024-11-20 13:21:51 +03:00
parent 74669b58fe
commit 8ae4d075c4
5 changed files with 69 additions and 9 deletions

View File

@@ -1,4 +1,4 @@
CREATE TABLE chat (
CREATE TABLE IF NOT EXISTS chat (
id INTEGER PRIMARY KEY AUTOINCREMENT,
name TEXT NOT NULL,
msgs TEXT NOT NULL, -- Store messages as a comma-separated string