2024-06-28 16:49:24 +02:00
|
|
|
ALTER TABLE job ADD COLUMN energy REAL NOT NULL DEFAULT 0.0;
|
|
|
|
ALTER TABLE job ADD COLUMN footprint TEXT DEFAULT NULL;
|
2024-08-05 10:37:42 +02:00
|
|
|
ALTER TABLE tag ADD COLUMN tag_scope TEXT NOT NULL DEFAULT 'global';
|
2024-06-28 16:49:24 +02:00
|
|
|
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);
|
|
|
|
UPDATE job SET footprint = json_insert(footprint, '$.mem_used_max', job.mem_used_max);
|
2024-07-11 17:24:33 +02:00
|
|
|
UPDATE job SET footprint = json_insert(footprint, '$.cpu_load_avg', job.load_avg);
|
2024-06-28 16:49:24 +02:00
|
|
|
ALTER TABLE job DROP flops_any_avg;
|
|
|
|
ALTER TABLE job DROP mem_bw_avg;
|
|
|
|
ALTER TABLE job DROP mem_used_max;
|
|
|
|
ALTER TABLE job DROP load_avg;
|