Skip to content

Commit

Permalink
feat: #tno-2603 - add contentmigrator user via migration (#1763)
Browse files Browse the repository at this point in the history
  • Loading branch information
kylgarmor authored Apr 30, 2024
1 parent bf87729 commit a3378e0
Show file tree
Hide file tree
Showing 3 changed files with 7,124 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
DO $$
BEGIN

IF NOT EXISTS (SELECT * from public."user" WHERE username = 'contentmigrator') THEN
INSERT INTO public."user" (username, email, "key", display_name, first_name, last_name, is_enabled, "status", email_verified, is_system_account, last_login_on, note, code, code_created_on, roles, created_by, created_on, updated_by, updated_on, "version", preferences, unique_logins, preferred_email) VALUES
('contentmigrator', '[email protected]', gen_random_uuid(), 'content migration service account', 'content migration', 'service user', true, 0, true, false, NULL, 'content migration service user', '', NULL, '[editor]', '', CURRENT_DATE, '', CURRENT_DATE, 1, '{}', 0, '');
END IF;

END $$;
Loading

0 comments on commit a3378e0

Please sign in to comment.