Skip to content

Commit

Permalink
Fix driver, port
Browse files Browse the repository at this point in the history
  • Loading branch information
timkelty committed Sep 2, 2021
1 parent ab577ec commit 53131fd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions config/db.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,16 @@
* list of the available settings in vendor/craftcms/cms/src/config/DbConfig.php.
*/

use craft\db\Connection;
use craft\helpers\App;

return [
'driver' => App::env('DB_DRIVER'),
'driver' => Connection::DRIVER_PGSQL,
'server' => App::env('DB_SERVER'),
'user' => App::env('DB_USER'),
'password' => App::env('DB_PASSWORD'),
'database' => App::env('DB_DATABASE'),
'schema' => App::env('DB_SCHEMA') ?: 'public',
'tablePrefix' => App::env('DB_TABLE_PREFIX'),
'port' => App::env('DB_PORT')
'port' => App::env('DB_PORT') ?: 5432,
];

0 comments on commit 53131fd

Please sign in to comment.