Skip to content

Commit b1c8e41

Browse files
committed
Make a DB migration optional
This should avoid the migration process to block if the field already exists.
1 parent ba5e479 commit b1c8e41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/db.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,6 @@ CREATE EXTENSION IF NOT EXISTS intarray;",
345345
CREATE UNIQUE INDEX IF NOT EXISTS review_prefs_user_id ON review_prefs(user_id);
346346
",
347347
"
348-
ALTER TABLE review_prefs ADD COLUMN max_assigned_prs INTEGER DEFAULT NULL;
348+
ALTER TABLE review_prefs ADD COLUMN IF NOT EXISTS max_assigned_prs INTEGER DEFAULT NULL;
349349
",
350350
];

0 commit comments

Comments
 (0)