Merge branch 'stable'

This commit is contained in:
link2xt
2023-10-24 17:49:23 +00:00
5 changed files with 64 additions and 59 deletions

View File

@@ -730,15 +730,6 @@ CREATE INDEX smtp_messageid ON imap(rfc724_mid);
)
.await?;
}
if dbversion < 102 {
sql.execute_migration(
"CREATE TABLE download (
msg_id INTEGER NOT NULL -- id of the message stub in msgs table
)",
102,
)
.await?;
}
// Add is_bot column to contacts table with default false.
if dbversion < 102 {
@@ -749,6 +740,16 @@ CREATE INDEX smtp_messageid ON imap(rfc724_mid);
.await?;
}
if dbversion < 103 {
sql.execute_migration(
"CREATE TABLE download (
msg_id INTEGER NOT NULL -- id of the message stub in msgs table
)",
103,
)
.await?;
}
let new_version = sql
.get_raw_config_int(VERSION_CFG)
.await?