Do not remove rfc724_mid for unlinked messages

Message-ID is used to send read receipts. Instead, add a separate
"unlinked" column.
This commit is contained in:
Alexander Krotov
2020-02-24 20:26:55 +03:00
parent a653e469f2
commit b2f1d9f376
2 changed files with 15 additions and 5 deletions

View File

@@ -898,6 +898,14 @@ fn open(
sql.execute("UPDATE chats SET grpid='' WHERE type=100", NO_PARAMS)?;
sql.set_raw_config_int(context, "dbversion", 63)?;
}
if dbversion < 64 {
info!(context, "[migration] v64");
sql.execute(
"ALTER TABLE msgs ADD COLUMN unlinked INTEGER DEFAULT 0",
NO_PARAMS,
)?;
sql.set_raw_config_int(context, "dbversion", 64)?;
}
// (2) updates that require high-level objects
// (the structure is complete now and all objects are usable)