Revert "koji / staging / sync: try and adjust to newer db schema"

This reverts commit 4d9a1b07d6.

The problem was a incomplete db dump, so we likely don't need this
change. It should work with a more complete db dump.
This commit is contained in:
Kevin Fenzi 2022-09-20 11:35:23 -07:00
parent d9fd96d672
commit e63e667a33

View file

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