Skip to content

Commit

Permalink
fix(ci): auth.users trigger (#281)
Browse files Browse the repository at this point in the history
* fix(ci): auth.users trigger

* Update post-restore.sql
  • Loading branch information
Julien Bouquillon authored Jan 22, 2021
1 parent 339fcfd commit d5f5454
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .k8s/components/restore/post-restore.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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;

0 comments on commit d5f5454

Please sign in to comment.