Skip to content

Commit d3277e0

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

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
@@ -266,7 +266,7 @@ Information about the collector; it's target architecture, when it was added, wh
266266
```
267267
sqlite> SELECT * FROM collector_config;
268268
269-
id target date_added last_heartbeat_at benchmark_set is_active
270-
--------- ------------------------- ------------- ---------------- --------- -------
271-
1 aarch64-unknown-linux-gnu 2025-06-11... 2025-06-12 17... 2 0
269+
id target name date_added last_heartbeat_at benchmark_set is_active
270+
--------- ------------------------- ---- ------------- ---------------- --------- -------
271+
1 aarch64-unknown-linux-gnu foo 2025-06-11... 2025-06-12 17... 2 0
272272
```

database/src/pool/sqlite.rs

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

422409
#[async_trait::async_trait]

0 commit comments

Comments
 (0)