fixed 生成表
This commit is contained in:
parent
6f8552fa70
commit
d68891035b
1
extend/catcher/command/Tools/MakeMenuCommand.php
Normal file
1
extend/catcher/command/Tools/MakeMenuCommand.php
Normal file
@ -0,0 +1 @@
|
|||||||
|
<?php
|
@ -93,6 +93,6 @@ abstract class Factory
|
|||||||
{
|
{
|
||||||
$tables = Db::getConnection()->getTables();
|
$tables = Db::getConnection()->getTables();
|
||||||
|
|
||||||
return in_array($table, $tables);
|
return in_array(\config('database.connections.mysql.prefix') . $table, $tables);
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -36,9 +36,7 @@ class SQL extends Factory
|
|||||||
throw new FailedException('table name has lost~');
|
throw new FailedException('table name has lost~');
|
||||||
}
|
}
|
||||||
|
|
||||||
$table = \config('database.connections.mysql.prefix') . $params['table'];
|
if ($this->hasTableExists($params['table'])) {
|
||||||
|
|
||||||
if ($this->hasTableExists($table)) {
|
|
||||||
throw new FailedException(sprintf('table [%s] has existed', $params['table']));
|
throw new FailedException(sprintf('table [%s] has existed', $params['table']));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user