Browse Source

FDB specific DB config

Vijayakrishnan 3 years ago
parent
commit
b5450f9259
2 changed files with 8 additions and 2 deletions
  1. 6 0
      .env.example
  2. 2 2
      config/database.php

+ 6 - 0
.env.example

@@ -13,6 +13,12 @@ DB_DATABASE=stag2
 DB_USERNAME=postgres
 DB_PASSWORD=pass
 
+DB_HOST_FDB=127.0.0.1
+DB_PORT_FDB=5432
+DB_DATABASE_FDB=fdb
+DB_USERNAME_FDB=postgres
+DB_PASSWORD_FDB=password
+
 BROADCAST_DRIVER=log
 CACHE_DRIVER=file
 QUEUE_CONNECTION=sync

+ 2 - 2
config/database.php

@@ -81,8 +81,8 @@ return [
         'pgsql_fdb' => [
             'driver' => 'pgsql',
             'url' => env('DATABASE_URL'),
-            'host' => env('DB_HOST', '127.0.0.1'),
-            'port' => env('DB_PORT', '5432'),
+            'host' => env('DB_HOST_FDB', '127.0.0.1'),
+            'port' => env('DB_PORT_FDB', '5432'),
             'database' => env('DB_DATABASE_FDB', 'forge'),
             'username' => env('DB_USERNAME_FDB', 'forge'),
             'password' => env('DB_PASSWORD_FDB', ''),