From 4891cfb03ef2393c8d746264c2065465fd9ac577 Mon Sep 17 00:00:00 2001 From: Mikolaj Izdebski Date: Sat, 10 Feb 2018 03:14:01 +0000 Subject: [PATCH] Clean imageinfo listings during Koji staging sync --- .../manual/staging-sync/templates/koji-reset-staging.sql | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/playbooks/manual/staging-sync/templates/koji-reset-staging.sql b/playbooks/manual/staging-sync/templates/koji-reset-staging.sql index 8bd43f919c..80367c53f9 100644 --- a/playbooks/manual/staging-sync/templates/koji-reset-staging.sql +++ b/playbooks/manual/staging-sync/templates/koji-reset-staging.sql @@ -24,6 +24,11 @@ -- [unset kojihub ServerOffline setting] +-- wipe obsolete table that only causes problems with the sync, could +-- even be dropped entirely (together with imageinfo table). +select now() as time, 'wiping imageinfo listings' as msg; +delete from imageinfo_listing; + -- bump sequences (not strictly needed anymore) select now() as time, 'bumping sequences' as msg; alter sequence task_id_seq restart with 90000000;