mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2025-11-01 00:15:05 +01:00
Add initial stub for sqlite job archive backend
This commit is contained in:
9
pkg/archive/migrations/01_init-schema.up.sql
Normal file
9
pkg/archive/migrations/01_init-schema.up.sql
Normal file
@@ -0,0 +1,9 @@
|
||||
CREATE TABLE IF NOT EXISTS "job" (
|
||||
id INTEGER PRIMARY KEY,
|
||||
clustername TEXT NOT NULL,
|
||||
job_id INTEGER NOT NULL,
|
||||
start_time INTEGER NOT NULL, -- Unix timestamp
|
||||
meta_data TEXT, -- JSON
|
||||
metric_data BLOB,
|
||||
UNIQUE ("job_id", "clustername", "start_time")
|
||||
);
|
||||
Reference in New Issue
Block a user