Skip to content

Commit 2e2159f

Browse files
committed
improve index name and comment
1 parent d45534b commit 2e2159f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

database/src/pool/postgres.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -303,8 +303,9 @@ static MIGRATIONS: &[&str] = &[
303303
"#,
304304
// Remove that tag cannot be NULL
305305
r#"ALTER TABLE benchmark_request ALTER COLUMN tag DROP NOT NULL;"#,
306-
// Prevent multiple try commits without a `sha` being added to the table
307-
r#"CREATE UNIQUE INDEX benchmark_request_pr_status_idx ON benchmark_request (pr, commit_type) WHERE tag IS NULL;"#,
306+
// Prevent multiple try commits without a `sha` and the same `pr` number
307+
// being added to the table
308+
r#"CREATE UNIQUE INDEX benchmark_request_pr_commit_type_idx ON benchmark_request (pr, commit_type) WHERE tag IS NULL;"#,
308309
];
309310

310311
#[async_trait::async_trait]

0 commit comments

Comments
 (0)