refactor(core)!: Switch default Postgres user from root to postgres (#9248)

This commit is contained in:
Iván Ovejero
2024-04-29 14:19:19 +02:00
committed by GitHub
parent 58156eeeec
commit 2917d04766
3 changed files with 12 additions and 2 deletions

View File

@@ -19,7 +19,7 @@ services:
restart: always restart: always
environment: environment:
- POSTGRES_DB=n8n - POSTGRES_DB=n8n
- POSTGRES_USER=root - POSTGRES_USER=postgres
- POSTGRES_PASSWORD=password - POSTGRES_PASSWORD=password
ports: ports:
- 5432:5432 - 5432:5432

View File

@@ -2,6 +2,16 @@
This list shows all the versions which include breaking changes and how to upgrade. This list shows all the versions which include breaking changes and how to upgrade.
## 1.40.0
### What changed?
The default value for the `DB_POSTGRESDB_USER` environment variable was switched from `root` to `postgres`.
### When is action necessary?
If your Postgres connection is relying on the old default value `root` for the `DB_POSTGRESDB_USER` environment variable, you must now explicitly set `DB_POSTGRESDB_USER` to `root` in your environment.
## 1.37.0 ## 1.37.0
### What changed? ### What changed?

View File

@@ -82,7 +82,7 @@ export const schema = {
user: { user: {
doc: 'PostgresDB User', doc: 'PostgresDB User',
format: String, format: String,
default: 'root', default: 'postgres',
env: 'DB_POSTGRESDB_USER', env: 'DB_POSTGRESDB_USER',
}, },
schema: { schema: {