fixed 生成表

This commit is contained in:
JaguarJack
2020-05-08 19:21:31 +08:00
parent 6f8552fa70
commit d68891035b
3 changed files with 3 additions and 4 deletions

View File

@@ -36,9 +36,7 @@ class SQL extends Factory
throw new FailedException('table name has lost~');
}
$table = \config('database.connections.mysql.prefix') . $params['table'];
if ($this->hasTableExists($table)) {
if ($this->hasTableExists($params['table'])) {
throw new FailedException(sprintf('table [%s] has existed', $params['table']));
}