fuu travis(x2)

This commit is contained in:
Nabeel Shahzad 2017-07-13 13:59:45 -05:00
parent a8efef1600
commit 9935052726

View File

@ -42,11 +42,16 @@ class CreateDatabase extends Command
$mysql_cmd = [
'mysql',
'-u' . config($dbkey . 'username'),
'-p' . config($dbkey . 'password'),
'-h' . config($dbkey . 'host'),
'-P' . config($dbkey . 'port'),
];
# only supply password if it's set
$password = config($dbkey . 'password');
if($password !== '') {
$mysql_cmd[] = '-p' . $password;
}
if ($this->option('reset')) {
$cmd = array_merge(
$mysql_cmd,