From 3df787b313f412e8cf48b3e95c1f104bdb260978 Mon Sep 17 00:00:00 2001 From: Alexey Skobkin Date: Sun, 29 Dec 2019 01:48:53 +0300 Subject: [PATCH] Setting default database version to 10.10 to avoid unnecessary DB connections from CLI. --- config/packages/doctrine.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/config/packages/doctrine.yaml b/config/packages/doctrine.yaml index 2f4a930..7b61471 100644 --- a/config/packages/doctrine.yaml +++ b/config/packages/doctrine.yaml @@ -4,6 +4,7 @@ parameters: # environment variables are not available yet. # You should not need to change this value. env(APP_DATABASE_URL): '' + env(POSTGRES_VERSION): '10.10' env(MAGNETICOD_DATABASE_URL): '' doctrine: @@ -13,10 +14,11 @@ doctrine: default: driver: 'pdo_pgsql' url: '%env(resolve:APP_DATABASE_URL)%' - #server_version: 9.6 + server_version: '%env(resolve:POSTGRES_VERSION)%' magneticod: driver: 'pdo_pgsql' url: '%env(resolve:MAGNETICOD_DATABASE_URL)%' + server_version: '%env(resolve:POSTGRES_VERSION)%' orm: auto_generate_proxy_classes: '%kernel.debug%' default_entity_manager: default