Skip to content

Commit ef42ae2

Browse files
committed
Pr feedback; add name to the schema doc and remove SQLite for the time being
1 parent 4140350 commit ef42ae2

File tree

2 files changed

+3
-16
lines changed

2 files changed

+3
-16
lines changed

database/schema.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ Information about the collector; it's target architecture, when it was added, wh
303303
```
304304
sqlite> SELECT * FROM collector_config;
305305
306-
id target date_added last_heartbeat_at benchmark_set is_active
307-
--------- ------------------------- ------------- ---------------- --------- -------
308-
1 aarch64-unknown-linux-gnu 2025-06-11... 2025-06-12 17... 2 0
306+
id target name date_added last_heartbeat_at benchmark_set is_active
307+
--------- ------------------------- ---- ------------- ---------------- --------- -------
308+
1 aarch64-unknown-linux-gnu foo 2025-06-11... 2025-06-12 17... 2 0
309309
```

database/src/pool/sqlite.rs

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -405,19 +405,6 @@ static MIGRATIONS: &[Migration] = &[
405405
alter table pstat_series_with_target rename to pstat_series;
406406
"#,
407407
),
408-
Migration::without_foreign_key_constraints(
409-
r#"
410-
CREATE TABLE IF NOT EXISTS collector_config (
411-
id INTEGER AUTO INCREMENT PRIMARY KEY,
412-
target TEXT NOT NULL,
413-
name TEXT NOT NULL,
414-
date_added TIMESTAMP DEFAULT CURRENT_TIMESTAMP NOT NULL,
415-
last_heartbeat_at TIMESTAMP,
416-
benchmark_set INTEGER NOT NULL,
417-
is_active BOOLEAN DEFAULT FALSE NOT NULL
418-
);
419-
"#,
420-
),
421408
];
422409

423410
#[async_trait::async_trait]

0 commit comments

Comments
 (0)