create table to track w30 status updates

This commit is contained in:
B. Petersen
2021-11-23 00:04:55 +01:00
committed by bjoern
parent 69d174c9e8
commit 7aa05e1c9f

View File

@@ -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,