mirror of
https://github.com/zhigang1992/hasura-backend-plus.git
synced 2026-01-12 22:47:51 +08:00
copy roles in the beginning
This commit is contained in:
@@ -92,6 +92,8 @@ ALTER TABLE ONLY auth.refresh_tokens
|
|||||||
|
|
||||||
INSERT INTO auth.providers (provider)
|
INSERT INTO auth.providers (provider)
|
||||||
VALUES ('github'), ('facebook'), ('twitter'), ('google'), ('apple'), ('linkedin'), ('windowslive');
|
VALUES ('github'), ('facebook'), ('twitter'), ('google'), ('apple'), ('linkedin'), ('windowslive');
|
||||||
|
INSERT INTO auth.roles (role)
|
||||||
|
SELECT role FROM public.roles;
|
||||||
INSERT INTO auth.accounts (
|
INSERT INTO auth.accounts (
|
||||||
id,
|
id,
|
||||||
created_at,
|
created_at,
|
||||||
@@ -138,8 +140,6 @@ INSERT INTO auth.account_providers (
|
|||||||
auth.user_providers AS user_providers
|
auth.user_providers AS user_providers
|
||||||
JOIN auth.user_accounts AS user_accounts ON user_accounts.user_id = user_providers.user_id
|
JOIN auth.user_accounts AS user_accounts ON user_accounts.user_id = user_providers.user_id
|
||||||
;
|
;
|
||||||
INSERT INTO auth.roles (role)
|
|
||||||
SELECT role FROM public.roles;
|
|
||||||
INSERT INTO auth.account_roles (id, created_at, account_id, role)
|
INSERT INTO auth.account_roles (id, created_at, account_id, role)
|
||||||
SELECT
|
SELECT
|
||||||
user_roles.id,
|
user_roles.id,
|
||||||
|
|||||||
Reference in New Issue
Block a user