Skip to content

Commit ad866ba

Browse files
committed
PR Feedback; update index and schmea.md
1 parent 055650d commit ad866ba

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

database/schema.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ whether it is active and when it last had activity denoted by `last_heartbeat_at
304304
Columns:
305305

306306
* **id** (`id`): A unique identifier for the collector.
307-
* **target** (`text NOT NULL`): The ISA of the collector for example; `AArch64`.
307+
* **target** (`text NOT NULL`): The ISA of the collector for example; `aarch64-unknown-linux-gnu`.
308308
* **name** (`text NOT NULL`): Unique name for the collector.
309309
* **date_added** (`timestamptz NOT NULL`): When the collector was added
310310
* **last_heartbeat_at** (`timestamptz`): When the collector last updated this

database/src/pool/postgres.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ static MIGRATIONS: &[&str] = &[
322322
-- Given the current setup, we do not want 2 collectors that are active
323323
-- with the same target using the same benchmark set.
324324
CONSTRAINT collector_config_target_bench_active_uniq
325-
UNIQUE (target, benchmark_set, is_active)
325+
UNIQUE (target, benchmark_set, is_active) WHERE is_active = TRUE
326326
);
327327
"#,
328328
];

0 commit comments

Comments
 (0)