From 8ae4d075c4d043eae604af9cad0cf5e571420a61 Mon Sep 17 00:00:00 2001 From: Grail Finder Date: Wed, 20 Nov 2024 13:21:51 +0300 Subject: Feat: migration on startup --- storage/migrations/001_init.up.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'storage/migrations') 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 -- cgit v1.2.3