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

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
Kevin Fenzi 2022-09-20 10:09:23 -07:00
parent d923eb6877
commit 4d9a1b07d6

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, creator_id) values (
(select id from host where name='{{host}}'), (select id from channels where name='{{channel}}'), 2045);
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');
{% endfor %}
{% endfor %}
{% endfor %}