From 542cc75a071012236b5b2edb2422496121a9c3a0 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Oct 07 2020 14:24:15 +0000 Subject: koji sync from stg: attempt to fix the migration Signed-off-by: Pierre-Yves Chibon --- diff --git a/playbooks/manual/staging-sync/templates/koji-reset-staging.sql b/playbooks/manual/staging-sync/templates/koji-reset-staging.sql index 6660a2a..bc5a769 100644 --- a/playbooks/manual/staging-sync/templates/koji-reset-staging.sql +++ b/playbooks/manual/staging-sync/templates/koji-reset-staging.sql @@ -60,6 +60,7 @@ update build set volume_id=(select id from volume where name='prod') where volum -- files are not there; keeping rpminfo's ma delete from archive_rpm_components where rpm_id in (select id from rpminfo where build_id in (select id from build where state<>1)); delete from image_listing where rpm_id in (select id from rpminfo where build_id in (select id from build where state<>1)); +delete from buildroot_listing where rpm_id in (select id from rpminfo where build_id in (select id from build where state<>1)); delete from rpminfo where build_id in (select id from build where state<>1); -- expire any active buildroots