fuu travis(x2)
This commit is contained in:
parent
a8efef1600
commit
9935052726
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user