diff options
author | Grail Finder <wohilas@gmail.com> | 2024-11-20 13:21:51 +0300 |
---|---|---|
committer | Grail Finder <wohilas@gmail.com> | 2024-11-20 13:21:51 +0300 |
commit | 8ae4d075c4d043eae604af9cad0cf5e571420a61 (patch) | |
tree | 3b0eb7689a598e25dac67d889e037f3bc08c19a1 /storage/migrations/001_init.up.sql | |
parent | 74669b58fe7b58b3d2fd4ad88c03890bc53a7a1a (diff) |
Feat: migration on startup
Diffstat (limited to 'storage/migrations/001_init.up.sql')
-rw-r--r-- | storage/migrations/001_init.up.sql | 2 |
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 |