From 7f7aa59c4b1068b69146ce3b42c0331f421affbc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?rich=CE=9Brd?= Date: Tue, 7 May 2024 09:39:06 -0400 Subject: [PATCH] fix: add `meta` to sqlite migration scripts (#2675) --- migrations/message_store/00009_addMetaColumn.up.sql | 1 + waku/waku_archive/driver/sqlite_driver/migrations.nim | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 migrations/message_store/00009_addMetaColumn.up.sql diff --git a/migrations/message_store/00009_addMetaColumn.up.sql b/migrations/message_store/00009_addMetaColumn.up.sql new file mode 100644 index 000000000..f8fc2e44c --- /dev/null +++ b/migrations/message_store/00009_addMetaColumn.up.sql @@ -0,0 +1 @@ +ALTER TABLE message ADD COLUMN meta BLOB; diff --git a/waku/waku_archive/driver/sqlite_driver/migrations.nim b/waku/waku_archive/driver/sqlite_driver/migrations.nim index 89f2aceff..01910ae51 100644 --- a/waku/waku_archive/driver/sqlite_driver/migrations.nim +++ b/waku/waku_archive/driver/sqlite_driver/migrations.nim @@ -10,7 +10,7 @@ import ../../../common/databases/db_sqlite, ../../../common/databases/common logScope: topics = "waku archive migration" -const SchemaVersion* = 8 # increase this when there is an update in the database schema +const SchemaVersion* = 9 # increase this when there is an update in the database schema template projectRoot(): string = currentSourcePath.rsplit(DirSep, 1)[0] / ".." / ".." / ".." / ".."