From 0c7ac2f41ac195bbdab87859ce591553a57ef01c Mon Sep 17 00:00:00 2001 From: Clement Verna Date: Thu, 23 Jan 2020 15:12:06 +0100 Subject: [PATCH] koji sync stg: user_krb_principals uses user_id and not id as a column name Signed-off-by: Clement Verna --- playbooks/manual/staging-sync/templates/koji-reset-staging.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/playbooks/manual/staging-sync/templates/koji-reset-staging.sql b/playbooks/manual/staging-sync/templates/koji-reset-staging.sql index a2a89c7bba..4265c0f072 100644 --- a/playbooks/manual/staging-sync/templates/koji-reset-staging.sql +++ b/playbooks/manual/staging-sync/templates/koji-reset-staging.sql @@ -82,7 +82,7 @@ update repo set state = 3 where state in (0, 1, 2); select now() as time, 'adding staging host {{ host }}' as msg; delete from host_config where host_id in (select id from host where name='{{host}}'); delete from host where name='{{ host }}'; -delete from user_krb_principals where id = (select id from users where name ='{{ host }}'); +delete from user_krb_principals where user_id = (select id from users where name ='{{ host }}'); delete from users where name='{{ host }}'; insert into users (name, status, usertype) values ('{{ host }}', 0, 1); insert into user_krb_principals (user_id, krb_principal) values (