From b82e25a65549690d03468b255b978d9c5d1659ce Mon Sep 17 00:00:00 2001 From: Andrew Welch Date: Tue, 26 May 2020 15:31:29 -0400 Subject: [PATCH 1/2] Use DSN for db connections --- cms/config/db.php | 5 +---- cms/example.env | 5 +---- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/cms/config/db.php b/cms/config/db.php index 5a27b48..1bc4b58 100644 --- a/cms/config/db.php +++ b/cms/config/db.php @@ -9,12 +9,9 @@ */ return [ - 'driver' => getenv('DB_DRIVER'), - 'server' => getenv('DB_SERVER'), + 'dsn' => getenv('DB_DSN'), 'user' => getenv('DB_USER'), 'password' => getenv('DB_PASSWORD'), - 'database' => getenv('DB_DATABASE'), 'schema' => getenv('DB_SCHEMA'), 'tablePrefix' => getenv('DB_TABLE_PREFIX'), - 'port' => getenv('DB_PORT') ]; diff --git a/cms/example.env b/cms/example.env index 546c7ac..75c1693 100644 --- a/cms/example.env +++ b/cms/example.env @@ -10,14 +10,11 @@ RUN_QUEUE_AUTOMATICALLY=1 SECURITY_KEY=EOdiVBONceb8zFGJP7InMui2pMkvNACz # Craft database settings -DB_DRIVER=mysql -DB_SERVER=mariadb +DB_DSN=mysql:host=mariadb;port=3306;dbname=project DB_USER=project DB_PASSWORD=project -DB_DATABASE=project DB_SCHEMA=public DB_TABLE_PREFIX= -DB_PORT= # URL & path settings ASSETS_URL=http://localhost:8000 From d663956651c64253323e628ccd5f8145832c64a0 Mon Sep 17 00:00:00 2001 From: Andrew Welch Date: Tue, 26 May 2020 15:32:09 -0400 Subject: [PATCH 2/2] Version 2.2.11 --- CHANGELOG.md | 4 ++++ composer.json | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2ae023b..f8332f0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # nystudio107/craft Change Log +## 2.2.11 - 2020.05.26 +### Changed +* Use DSN for database connections + ## 2.2.10 - 2020.05.20 ### Added * Added baked-in support for xdebug diff --git a/composer.json b/composer.json index 2fb70bd..44e7578 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { "name": "craftcms/craft", "description": "nystudio107 Craft 3.4 CMS scaffolding project", - "version": "2.2.10", + "version": "2.2.11", "keywords": [ "craft", "cms",