File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -272,6 +272,9 @@ async fn handle_job(
272
272
Ok ( ( ) )
273
273
}
274
274
275
+ // Important notes when adding migrations:
276
+ // - Each DB change is an element in this array and must be a single SQL instruction
277
+ // - The total # of items in this array must be equal to the value of `database_versions.migration_counter`
275
278
static MIGRATIONS : & [ & str ] = & [
276
279
"
277
280
CREATE TABLE notifications (
@@ -332,7 +335,8 @@ CREATE table review_prefs (
332
335
assigned_prs INT[] NOT NULL DEFAULT array[]::INT[]
333
336
);" ,
334
337
"
335
- CREATE EXTENSION intarray;
336
- CREATE UNIQUE INDEX review_prefs_user_id ON review_prefs(user_id);
338
+ CREATE EXTENSION IF NOT EXISTS intarray;" ,
339
+ "
340
+ CREATE UNIQUE INDEX IF NOT EXISTS review_prefs_user_id ON review_prefs(user_id);
337
341
" ,
338
342
] ;
You can’t perform that action at this time.
0 commit comments