From 7aa05e1c9fd34e13c2b3c9505b7d51a24dc1e2d1 Mon Sep 17 00:00:00 2001 From: "B. Petersen" Date: Tue, 23 Nov 2021 00:04:55 +0100 Subject: [PATCH] create table to track w30 status updates --- src/sql/migrations.rs | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/sql/migrations.rs b/src/sql/migrations.rs index 23d86d0c7..8936ac60b 100644 --- a/src/sql/migrations.rs +++ b/src/sql/migrations.rs @@ -549,6 +549,19 @@ DO UPDATE SET rfc724_mid=excluded.rfc724_mid, ) .await?; } + if dbversion < 84 { + info!(context, "[migration] v84"); + sql.execute_migration( + r#"CREATE TABLE msgs_status_updates ( +id INTEGER PRIMARY KEY AUTOINCREMENT, +msg_id INTEGER, +payload TEXT DEFAULT '', +payload_read INTEGER DEFAULT 0); +CREATE INDEX msgs_status_updates_index1 ON msgs_status_updates (msg_id);"#, + 84, + ) + .await?; + } Ok(( recalc_fingerprints,