From 5c6931953aa40dac28ba0b228c759e47ce17e6cf Mon Sep 17 00:00:00 2001 From: Shahed Nasser Date: Mon, 16 Jan 2023 11:22:38 +0200 Subject: [PATCH] docs: fixed note about database_schema option (#3037) --- docs/content/usage/configurations.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/content/usage/configurations.md b/docs/content/usage/configurations.md index ad5a6f6661..55f0e1de10 100644 --- a/docs/content/usage/configurations.md +++ b/docs/content/usage/configurations.md @@ -79,7 +79,7 @@ module.exports = { Where `database_type` is `postgres` and `DATABASE_URL` is the URL connection string to your PostgreSQL database. You can check out how to format it in [PostgreSQL’s documentation](https://www.postgresql.org/docs/current/libpq-connect.html). -You can optionally set the `database_schema` option. By default, its value is `public`. +You can optionally set the `database_schema` option. By default, its value is `public`. When you set the `database_schema` option, you must add the `search_path` option to the database URL. For example, the value of `database_url` is `postgres://localhost/store?options=-c search_path=test` if `database_schema` is `test`. It's recommended to set the Database URL as an environment variable: