Replaces postgrest_authenticator for postgrest_test_authenticator
This commit is contained in:
+1
-1
@@ -32,7 +32,7 @@ import PostgREST.Error(pgErrResponse)
|
|||||||
import PostgREST.DbStructure
|
import PostgREST.DbStructure
|
||||||
|
|
||||||
dbString :: String
|
dbString :: String
|
||||||
dbString = "postgres://postgrest_authenticator@localhost:5432/postgrest_test"
|
dbString = "postgres://postgrest_test_authenticator@localhost:5432/postgrest_test"
|
||||||
|
|
||||||
cfg :: String -> Maybe Int -> AppConfig
|
cfg :: String -> Maybe Int -> AppConfig
|
||||||
cfg conStr = AppConfig conStr 3000 "postgrest_anonymous" "test" (secret "safe") 10
|
cfg conStr = AppConfig conStr 3000 "postgrest_anonymous" "test" (secret "safe") 10
|
||||||
|
|||||||
Vendored
+3
-3
@@ -1,7 +1,7 @@
|
|||||||
DROP ROLE IF EXISTS postgrest_authenticator, postgrest_anonymous, test_default_role, postgrest_test_author;
|
DROP ROLE IF EXISTS postgrest_test_authenticator, postgrest_anonymous, test_default_role, postgrest_test_author;
|
||||||
CREATE ROLE postgrest_authenticator WITH login;
|
CREATE ROLE postgrest_test_authenticator WITH login;
|
||||||
CREATE ROLE postgrest_anonymous;
|
CREATE ROLE postgrest_anonymous;
|
||||||
CREATE ROLE test_default_role;
|
CREATE ROLE test_default_role;
|
||||||
CREATE ROLE postgrest_test_author;
|
CREATE ROLE postgrest_test_author;
|
||||||
|
|
||||||
GRANT postgrest_anonymous, test_default_role, postgrest_test_author TO postgrest_authenticator;
|
GRANT postgrest_anonymous, test_default_role, postgrest_test_author TO postgrest_test_authenticator;
|
||||||
|
|||||||
Reference in New Issue
Block a user