diff --git a/api/src/env.ts b/api/src/env.ts index 75af7f7fde..c6822fe823 100644 --- a/api/src/env.ts +++ b/api/src/env.ts @@ -19,7 +19,7 @@ const defaults: Record = { PUBLIC_URL: '/', MAX_PAYLOAD_SIZE: '100kb', - DB_EXCLUDE_TABLES: [], + DB_EXCLUDE_TABLES: 'spatial_ref_sys', STORAGE_LOCATIONS: 'local', STORAGE_LOCAL_DRIVER: 'local', diff --git a/docs/reference/environment-variables.md b/docs/reference/environment-variables.md index 90b6fa9339..8c5b8b3d4c 100644 --- a/docs/reference/environment-variables.md +++ b/docs/reference/environment-variables.md @@ -23,18 +23,18 @@ needs to be publicly available on the internet. ## Database -| Variable | Description | Default Value | -| ---------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------- | ------------- | -| `DB_CLIENT` | **Required**. What database client to use. One of `pg` or `postgres`, `mysql`, `oracledb`, `mssql`, or `sqlite3`. | -- | -| `DB_HOST` | Database host. **Required** when using `pg`, `mysql`, `oracledb`, or `mssql`. | -- | -| `DB_PORT` | Database port. **Required** when using `pg`, `mysql`, `oracledb`, or `mssql`. | -- | -| `DB_DATABASE` | Database name. **Required** when using `pg`, `mysql`, `oracledb`, or `mssql`. | -- | -| `DB_USER` | Database user. **Required** when using `pg`, `mysql`, `oracledb`, or `mssql`. | -- | -| `DB_PASSWORD` | Database user's password. **Required** when using `pg`, `mysql`, `oracledb`, or `mssql`. | -- | -| `DB_FILENAME` | Where to read/write the SQLite database. **Required** when using `sqlite3`. | -- | -| `DB_CONNECTION_STRING` | When using `pg`, you can submit a connection string instead of individual properties. Using this will ignore any of the other connection settings. | -- | -| `DB_POOL_*` | Pooling settings. Passed on to [the `tarn.js`](https://github.com/vincit/tarn.js#usage) library. | -- | -| `DB_EXCLUDE_TABLES` | CSV of tables you want Directus to ignore completely | -- | +| Variable | Description | Default Value | +| ---------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------- | --------------- | +| `DB_CLIENT` | **Required**. What database client to use. One of `pg` or `postgres`, `mysql`, `oracledb`, `mssql`, or `sqlite3`. | -- | +| `DB_HOST` | Database host. **Required** when using `pg`, `mysql`, `oracledb`, or `mssql`. | -- | +| `DB_PORT` | Database port. **Required** when using `pg`, `mysql`, `oracledb`, or `mssql`. | -- | +| `DB_DATABASE` | Database name. **Required** when using `pg`, `mysql`, `oracledb`, or `mssql`. | -- | +| `DB_USER` | Database user. **Required** when using `pg`, `mysql`, `oracledb`, or `mssql`. | -- | +| `DB_PASSWORD` | Database user's password. **Required** when using `pg`, `mysql`, `oracledb`, or `mssql`. | -- | +| `DB_FILENAME` | Where to read/write the SQLite database. **Required** when using `sqlite3`. | -- | +| `DB_CONNECTION_STRING` | When using `pg`, you can submit a connection string instead of individual properties. Using this will ignore any of the other connection settings. | -- | +| `DB_POOL_*` | Pooling settings. Passed on to [the `tarn.js`](https://github.com/vincit/tarn.js#usage) library. | -- | +| `DB_EXCLUDE_TABLES` | CSV of tables you want Directus to ignore completely | spatial_ref_sys | ::: tip Additional Database Variables @@ -267,11 +267,11 @@ Based on your configured driver, you must also provide the following configurati ### Azure (`azure`) -| Variable | Description | Default Value | -| ----------------------------------- | -------------------------- | ------------------------------------- | -| `STORAGE__CONTAINER_NAME` | Azure Storage container | -- | -| `STORAGE__ACCOUNT_NAME` | Azure Storage account name | -- | -| `STORAGE__ACCOUNT_KEY` | Azure Storage key | -- | +| Variable | Description | Default Value | +| ----------------------------------- | -------------------------- | --------------------------------------------- | +| `STORAGE__CONTAINER_NAME` | Azure Storage container | -- | +| `STORAGE__ACCOUNT_NAME` | Azure Storage account name | -- | +| `STORAGE__ACCOUNT_KEY` | Azure Storage key | -- | | `STORAGE__ENDPOINT` | Azure URL | "https://{ACCOUNT_KEY}.blob.core.windows.net" | ### Google Cloud Storage (`gcs`)