From 9f3f3fd4500a6ad1bd542405c9d610feaa76c99a Mon Sep 17 00:00:00 2001 From: Jeremy Quinton Date: Fri, 29 Jun 2018 18:44:34 +0200 Subject: [PATCH] changed the default db adapter In the docker compose file we are using Postgres as the DB but the default adapter is set to use MySQL so trying to create the default app out the box does not work. --- .env.example | 2 +- config/database.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.env.example b/.env.example index a92ffd61..fcc2ebcd 100644 --- a/.env.example +++ b/.env.example @@ -5,7 +5,7 @@ APP_CIPHER=AES-256-CBC APP_KEY= APP_TIMEZONE= -DB_TYPE=mysql +DB_TYPE=pgsql DB_HOST=db DB_PORT=3306 DB_DATABASE=attendize diff --git a/config/database.php b/config/database.php index 84830bec..3ba824a0 100644 --- a/config/database.php +++ b/config/database.php @@ -26,7 +26,7 @@ return [ | */ - 'default' => env('DB_TYPE', 'mysql'), + 'default' => env('DB_TYPE', 'pgsql'), /* |-------------------------------------------------------------------------- @@ -59,7 +59,7 @@ return [ ], 'mysql' => [ - 'driver' => 'mysql', + 'driver' => 'pgsql', 'host' => env('DB_HOST'), 'port' => env('DB_PORT'), 'database' => env('DB_DATABASE'),