We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d45534b commit 2e2159fCopy full SHA for 2e2159f
database/src/pool/postgres.rs
@@ -303,8 +303,9 @@ static MIGRATIONS: &[&str] = &[
303
"#,
304
// Remove that tag cannot be NULL
305
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;"#,
+ // Prevent multiple try commits without a `sha` and the same `pr` number
+ // 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;"#,
309
];
310
311
#[async_trait::async_trait]
0 commit comments