summaryrefslogtreecommitdiff
path: root/storage/migrations
diff options
context:
space:
mode:
authorGrail Finder <wohilas@gmail.com>2024-11-20 13:21:51 +0300
committerGrail Finder <wohilas@gmail.com>2024-11-20 13:21:51 +0300
commit8ae4d075c4d043eae604af9cad0cf5e571420a61 (patch)
tree3b0eb7689a598e25dac67d889e037f3bc08c19a1 /storage/migrations
parent74669b58fe7b58b3d2fd4ad88c03890bc53a7a1a (diff)
Feat: migration on startup
Diffstat (limited to 'storage/migrations')
-rw-r--r--storage/migrations/001_init.up.sql2
1 files changed, 1 insertions, 1 deletions
diff --git a/storage/migrations/001_init.up.sql b/storage/migrations/001_init.up.sql
index 287f3d1..1b3e63d 100644
--- a/storage/migrations/001_init.up.sql
+++ b/storage/migrations/001_init.up.sql
@@ -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