From d5f54549d95989ce89bf08144414d9e7bb7195c8 Mon Sep 17 00:00:00 2001 From: Julien Bouquillon Date: Fri, 22 Jan 2021 16:12:59 +0100 Subject: [PATCH] fix(ci): auth.users trigger (#281) * fix(ci): auth.users trigger * Update post-restore.sql --- .k8s/components/restore/post-restore.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.k8s/components/restore/post-restore.sql b/.k8s/components/restore/post-restore.sql index 7509bb4c3..28a4f43a8 100644 --- a/.k8s/components/restore/post-restore.sql +++ b/.k8s/components/restore/post-restore.sql @@ -4,7 +4,7 @@ TRUNCATE TABLE "auth"."users" CASCADE; -- DISABLE TRIGGERS -- -SET session_replication_role = REPLICA; +ALTER TABLE auth.users DISABLE TRIGGER USER; WITH admin_row AS ( INSERT INTO auth.users (email, PASSWORD, name, default_role, active) @@ -34,4 +34,4 @@ INSERT INTO auth.users (email, PASSWORD, name, default_role, active) -- ENABLE TRIGGERS -- -SET session_replication_role = DEFAULT; +ALTER TABLE auth.users ENABLE TRIGGER USER;