mirror of
https://github.com/chatmail/core.git
synced 2026-04-21 15:36:30 +03:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user