mirror of
https://github.com/chatmail/core.git
synced 2026-05-08 09:26:29 +03:00
fix(sql): order migrations the same as on stable branch
This commit is contained in:
@@ -731,20 +731,20 @@ CREATE INDEX smtp_messageid ON imap(rfc724_mid);
|
|||||||
.await?;
|
.await?;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Add is_bot column to contacts table with default false.
|
|
||||||
if dbversion < 102 {
|
if dbversion < 102 {
|
||||||
sql.execute_migration(
|
sql.execute_migration(
|
||||||
"ALTER TABLE contacts ADD COLUMN is_bot INTEGER NOT NULL DEFAULT 0",
|
"CREATE TABLE download (
|
||||||
|
msg_id INTEGER NOT NULL -- id of the message stub in msgs table
|
||||||
|
)",
|
||||||
102,
|
102,
|
||||||
)
|
)
|
||||||
.await?;
|
.await?;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Add is_bot column to contacts table with default false.
|
||||||
if dbversion < 103 {
|
if dbversion < 103 {
|
||||||
sql.execute_migration(
|
sql.execute_migration(
|
||||||
"CREATE TABLE download (
|
"ALTER TABLE contacts ADD COLUMN is_bot INTEGER NOT NULL DEFAULT 0",
|
||||||
msg_id INTEGER NOT NULL -- id of the message stub in msgs table
|
|
||||||
)",
|
|
||||||
103,
|
103,
|
||||||
)
|
)
|
||||||
.await?;
|
.await?;
|
||||||
|
|||||||
Reference in New Issue
Block a user