mirror of
https://github.com/zhigang1992/graphql-engine.git
synced 2026-05-20 04:01:13 +08:00
committed by
Shahidh K Muhammed
parent
feaeccba71
commit
e9121a903f
@@ -76,7 +76,7 @@ initCatalogStrict createSchema initTime = do
|
||||
-- only if we created the schema, create the extension
|
||||
then when createSchema $ liftTx $ Q.unitQE needsPgCryptoExt
|
||||
"CREATE EXTENSION IF NOT EXISTS pgcrypto SCHEMA public" () False
|
||||
else throw500 "FATAL: Could not find extension pgcrytpo. This extension is required."
|
||||
else throw500 pgcryptoNotAvlMsg
|
||||
|
||||
liftTx $ Q.catchE defaultTxErrorHandler $ do
|
||||
Q.Discard () <- Q.multiQ $(Q.sqlFromFile "src-rsr/initialise.sql")
|
||||
@@ -316,10 +316,15 @@ execQuery queryBs = do
|
||||
-- error messages
|
||||
pgcryptoReqdMsg :: T.Text
|
||||
pgcryptoReqdMsg =
|
||||
"pgcrypto extension is required, but could not install; encountered postgres error"
|
||||
"pgcrypto extension is required, but could not install; encountered unknown postgres error"
|
||||
|
||||
pgcryptoPermsMsg :: T.Text
|
||||
pgcryptoPermsMsg =
|
||||
"pgcrypto extension is required, but current user doesn't have permission to create it. "
|
||||
<> "Please grant superuser permission or setup initial schema via "
|
||||
<> "https://docs.hasura.io/1.0/graphql/manual/deployment/postgres-permissions.html"
|
||||
|
||||
pgcryptoNotAvlMsg :: T.Text
|
||||
pgcryptoNotAvlMsg =
|
||||
"pgcrypto extension is required, but could not find the extension in the "
|
||||
<> "PostgreSQL server. Please make sure this extension is available."
|
||||
|
||||
Reference in New Issue
Block a user