From 9c22149afdf016b6f346bf528015c8a7f2b2948c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20B=C3=B6hmer?= Date: Sat, 23 Nov 2019 18:01:45 +0100 Subject: [PATCH] Let doctrine detect its driver and db_version automatically. --- config/packages/doctrine.yaml | 6 ++++-- config/services.yaml | 1 - 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/config/packages/doctrine.yaml b/config/packages/doctrine.yaml index 5f12ec5a..5f28d308 100644 --- a/config/packages/doctrine.yaml +++ b/config/packages/doctrine.yaml @@ -8,8 +8,10 @@ parameters: doctrine: dbal: # configure these for your database server - driver: 'pdo_mysql' - server_version: '%env(string:default:db_version_fallback:DB_VERSION)%' + # Doctrine should be able to detect these settings automatically, so just override them if you getting errors. + #driver: 'pdo_mysql' + #server_version: '5.6' + charset: utf8mb4 default_table_options: charset: utf8mb4 diff --git a/config/services.yaml b/config/services.yaml index ec8db314..911acdaf 100644 --- a/config/services.yaml +++ b/config/services.yaml @@ -13,7 +13,6 @@ parameters: default_currency: 'EUR' # The currency that should be used media_directory: 'public/media/' # The folder where uploaded attachment files are saved secure_media_directory: 'uploads/' # The folder where secured attachment files are saved (must not be in public/) - db_version_fallback: '5.6' # Be sure to override this, in your .env with your real DB version global_theme: '' # The theme to use globally (see public/build/themes/ for choices). Set to '' for default bootstrap theme # Allow users to download attachments to server. Warning: This can be dangerous, because via that feature attackers maybe can access ressources on your intranet! allow_attachments_downloads: false