File tree Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -305,5 +305,5 @@ sqlite> SELECT * FROM collector_config;
305
305
306
306
id target date_added last_heartbeat_at benchmark_set is_active
307
307
--------- ------------------------- ------------- ---------------- --------- -------
308
- ea1f4e... aarch64-unknown-linux-gnu 2025-06-11... 2025-06-12 17... cea1bc... 0
308
+ 1 aarch64-unknown-linux-gnu 2025-06-11... 2025-06-12 17... 2 0
309
309
```
Original file line number Diff line number Diff line change @@ -309,14 +309,14 @@ static MIGRATIONS: &[&str] = &[
309
309
// Prevent multiple try commits without a `sha` and the same `pr` number
310
310
// being added to the table
311
311
r#"CREATE UNIQUE INDEX benchmark_request_pr_commit_type_idx ON benchmark_request (pr, commit_type) WHERE status != 'completed';"# ,
312
- r#"CREATE EXTENSION IF NOT EXISTS "uuid-ossp";"# ,
313
312
r#"
314
313
CREATE TABLE IF NOT EXISTS collector_config (
315
- id UUID PRIMARY KEY,
314
+ id SERIAL PRIMARY KEY,
316
315
target TEXT NOT NULL,
316
+ name TEXT NOT NULL,
317
317
date_added TIMESTAMPTZ DEFAULT NOW() NOT NULL,
318
318
last_heartbeat_at TIMESTAMPTZ,
319
- benchmark_set UUID NOT NULL,
319
+ benchmark_set INTEGER NOT NULL,
320
320
is_active BOOLEAN DEFAULT FALSE NOT NULL
321
321
);
322
322
"# ,
Original file line number Diff line number Diff line change @@ -408,11 +408,12 @@ static MIGRATIONS: &[Migration] = &[
408
408
Migration :: without_foreign_key_constraints (
409
409
r#"
410
410
CREATE TABLE IF NOT EXISTS collector_config (
411
- id TEXT PRIMARY KEY,
411
+ id INTEGER AUTO INCREMENT PRIMARY KEY,
412
412
target TEXT NOT NULL,
413
+ name TEXT NOT NULL,
413
414
date_added TIMESTAMP DEFAULT CURRENT_TIMESTAMP NOT NULL,
414
415
last_heartbeat_at TIMESTAMP,
415
- benchmark_set TEXT NOT NULL,
416
+ benchmark_set INTEGER NOT NULL,
416
417
is_active BOOLEAN DEFAULT FALSE NOT NULL
417
418
);
418
419
"# ,
You can’t perform that action at this time.
0 commit comments