mirror of
https://github.com/vrtmrz/obsidian-livesync.git
synced 2026-09-01 00:07:06 +00:00
13 lines
456 B
SQL
13 lines
456 B
SQL
do $$
|
|
begin
|
|
if not exists (select 1 from pg_roles where rolname = 'livesync_postgrest_anon') then
|
|
create role livesync_postgrest_anon nologin;
|
|
end if;
|
|
if not exists (select 1 from pg_roles where rolname = 'livesync_postgrest_authenticator') then
|
|
create role livesync_postgrest_authenticator noinherit login password 'integration-password';
|
|
end if;
|
|
end
|
|
$$;
|
|
|
|
grant livesync_postgrest_anon to livesync_postgrest_authenticator;
|