From e63e667a330fd34dc34607b70eca08f7d84be941 Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Tue, 20 Sep 2022 11:35:23 -0700 Subject: [PATCH] Revert "koji / staging / sync: try and adjust to newer db schema" This reverts commit 4d9a1b07d61266b01dc962dda6d2414b3b8d204d. The problem was a incomplete db dump, so we likely don't need this change. It should work with a more complete db dump. --- .../manual/staging-sync/templates/koji-reset-staging.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/playbooks/manual/staging-sync/templates/koji-reset-staging.sql b/playbooks/manual/staging-sync/templates/koji-reset-staging.sql index 9e3a81cec8..bc5a769125 100644 --- a/playbooks/manual/staging-sync/templates/koji-reset-staging.sql +++ b/playbooks/manual/staging-sync/templates/koji-reset-staging.sql @@ -95,8 +95,8 @@ insert into host (user_id, name) values ( insert into host_config (host_id, arches, creator_id) values ( (select id from host where name='{{host}}'), '{{ group.arches }}', 2045); {% for channel in [ 'default', 'appliance', 'vm', 'secure-boot', 'compose', 'eclipse', 'images', 'image'] + group.extra_channels|default([]) %} -insert into host_channels (host_id, channel_id, create_event, revoke_event, creator_id, revoker_id, active) values ( - (select id from host where name='{{host}}'), (select id from channels where name='{{channel}}'), 36933659, 0, 2045, 0, 't'); +insert into host_channels (host_id, channel_id, creator_id) values ( + (select id from host where name='{{host}}'), (select id from channels where name='{{channel}}'), 2045); {% endfor %} {% endfor %} {% endfor %}