backend: fix missing v2_job_runtime (#5230)

This commit is contained in:
Lucas Abel
2025-02-06 15:12:22 +01:00
committed by GitHub
parent 8b65956cf9
commit 321c3d3790
2 changed files with 9 additions and 0 deletions
@@ -0,0 +1 @@
-- Add down migration script here
@@ -0,0 +1,8 @@
-- Add up migration script here
-- Migrate `v2_job_queue` moved columns to `v2_job_runtime`:
INSERT INTO v2_job_runtime (id, ping, memory_peak)
SELECT id, __last_ping, __mem_peak
FROM v2_job_queue
-- Locked ones will sync within triggers
FOR UPDATE SKIP LOCKED
ON CONFLICT (id) DO NOTHING;