Skip to content

Commit 3748794

Browse files
committed
fix(sql): order migrations the same as on stable branch
1 parent 4e771e8 commit 3748794

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/sql/migrations.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -731,20 +731,20 @@ CREATE INDEX smtp_messageid ON imap(rfc724_mid);
731731
.await?;
732732
}
733733

734-
// Add is_bot column to contacts table with default false.
735734
if dbversion < 102 {
736735
sql.execute_migration(
737-
"ALTER TABLE contacts ADD COLUMN is_bot INTEGER NOT NULL DEFAULT 0",
736+
"CREATE TABLE download (
737+
msg_id INTEGER NOT NULL -- id of the message stub in msgs table
738+
)",
738739
102,
739740
)
740741
.await?;
741742
}
742743

744+
// Add is_bot column to contacts table with default false.
743745
if dbversion < 103 {
744746
sql.execute_migration(
745-
"CREATE TABLE download (
746-
msg_id INTEGER NOT NULL -- id of the message stub in msgs table
747-
)",
747+
"ALTER TABLE contacts ADD COLUMN is_bot INTEGER NOT NULL DEFAULT 0",
748748
103,
749749
)
750750
.await?;

0 commit comments

Comments
 (0)