fix StartJobTest, add tag_scope to migration

This commit is contained in:
Christoph Kluge
2024-08-05 10:37:42 +02:00
parent e6ebec8c1e
commit 9b5c6e3164
2 changed files with 3 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
ALTER TABLE job ADD COLUMN energy REAL NOT NULL DEFAULT 0.0;
ALTER TABLE job ADD COLUMN footprint TEXT DEFAULT NULL;
ALTER TABLE tag ADD COLUMN tag_scope TEXT NOT NULL DEFAULT 'global';
UPDATE job SET footprint = '{"flops_any_avg": 0.0}';
UPDATE job SET footprint = json_replace(footprint, '$.flops_any_avg', job.flops_any_avg);
UPDATE job SET footprint = json_insert(footprint, '$.mem_bw_avg', job.mem_bw_avg);