koji sync from stg: attempt to fix the migration

Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
This commit is contained in:
Pierre-Yves Chibon 2020-10-07 16:23:59 +02:00
parent 1a1f7d79e4
commit 542cc75a07

View file

@ -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