优化install

This commit is contained in:
吴彦文 2020-04-08 17:44:35 +08:00
parent 8d10baa35f
commit 56f6ba90a6

View File

@ -160,7 +160,7 @@ class InstallProjectCommand extends Command
if (!$this->databaseLink) {
unlink($this->getEnvFilePath());
$this->execute($this->input, $this->output);
}
} else {
[
$connections['mysql']['hostname'],
@ -170,7 +170,7 @@ class InstallProjectCommand extends Command
$connections['mysql']['hostport'],
$connections['mysql']['charset'],
$connections['mysql']['prefix'],
] = $this->databaseLink ? : [
] = $this->databaseLink ?: [
env('mysql.hostname')
];
@ -181,6 +181,7 @@ class InstallProjectCommand extends Command
$this->migrateAndSeeds();
}
}
}
/**
* 生成表结构