From 3748794048d6371ad775e75d589685ea0430f93b Mon Sep 17 00:00:00 2001 From: link2xt Date: Wed, 25 Oct 2023 16:37:39 +0000 Subject: [PATCH] fix(sql): order migrations the same as on stable branch --- src/sql/migrations.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/sql/migrations.rs b/src/sql/migrations.rs index a1815652f8..6e69311c5f 100644 --- a/src/sql/migrations.rs +++ b/src/sql/migrations.rs @@ -731,20 +731,20 @@ CREATE INDEX smtp_messageid ON imap(rfc724_mid); .await?; } - // Add is_bot column to contacts table with default false. if dbversion < 102 { 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, ) .await?; } + // Add is_bot column to contacts table with default false. if dbversion < 103 { sql.execute_migration( - "CREATE TABLE download ( - msg_id INTEGER NOT NULL -- id of the message stub in msgs table - )", + "ALTER TABLE contacts ADD COLUMN is_bot INTEGER NOT NULL DEFAULT 0", 103, ) .await?;