Skip to content

Commit

Permalink
Make a DB migration optional
Browse files Browse the repository at this point in the history
This should avoid the migration process to block if the field already exists.
  • Loading branch information
apiraino committed Jan 17, 2025
1 parent ba5e479 commit b1c8e41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,6 @@ CREATE EXTENSION IF NOT EXISTS intarray;",
CREATE UNIQUE INDEX IF NOT EXISTS review_prefs_user_id ON review_prefs(user_id);
",
"
ALTER TABLE review_prefs ADD COLUMN max_assigned_prs INTEGER DEFAULT NULL;
ALTER TABLE review_prefs ADD COLUMN IF NOT EXISTS max_assigned_prs INTEGER DEFAULT NULL;
",
];

0 comments on commit b1c8e41

Please sign in to comment.