We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent de496f0 commit 5cc72dcCopy full SHA for 5cc72dc
knexfile.js
@@ -10,8 +10,8 @@ const defaults = {
10
connection: {
11
user: connection.user || 'root',
12
password: connection.password || '',
13
- host: connection.hosts[0].name,
14
- port: connection.port || 5432,
+ host: connection.hosts && connection.hosts[0].name,
+ port: (connection.hosts && connection.hosts[0].port) || 5432,
15
database: connection.path[0],
16
},
17
migrations: {
0 commit comments