From 2917d04766fc6fe01d6b393628887f86e250001e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iv=C3=A1n=20Ovejero?= Date: Mon, 29 Apr 2024 14:19:19 +0200 Subject: [PATCH] refactor(core)!: Switch default Postgres user from `root` to `postgres` (#9248) --- .github/docker-compose.yml | 2 +- packages/cli/BREAKING-CHANGES.md | 10 ++++++++++ packages/cli/src/config/schema.ts | 2 +- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/docker-compose.yml b/.github/docker-compose.yml index 3ae783222..84a1b9c96 100644 --- a/.github/docker-compose.yml +++ b/.github/docker-compose.yml @@ -19,7 +19,7 @@ services: restart: always environment: - POSTGRES_DB=n8n - - POSTGRES_USER=root + - POSTGRES_USER=postgres - POSTGRES_PASSWORD=password ports: - 5432:5432 diff --git a/packages/cli/BREAKING-CHANGES.md b/packages/cli/BREAKING-CHANGES.md index a00c800de..f03f1b262 100644 --- a/packages/cli/BREAKING-CHANGES.md +++ b/packages/cli/BREAKING-CHANGES.md @@ -2,6 +2,16 @@ 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 ### What changed? diff --git a/packages/cli/src/config/schema.ts b/packages/cli/src/config/schema.ts index c4177548c..30aec029f 100644 --- a/packages/cli/src/config/schema.ts +++ b/packages/cli/src/config/schema.ts @@ -82,7 +82,7 @@ export const schema = { user: { doc: 'PostgresDB User', format: String, - default: 'root', + default: 'postgres', env: 'DB_POSTGRESDB_USER', }, schema: {