docs: fixed note about database_schema option (#3037)

This commit is contained in:
Shahed Nasser
2023-01-16 11:22:38 +02:00
committed by GitHub
parent dc26a28a53
commit 5c6931953a

View File

@@ -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 [PostgreSQLs 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: