fix: 修复代码删除表名前缀 #77
This commit is contained in:
parent
8f65a2bf99
commit
3ca6cea6ad
@ -17,7 +17,7 @@ class Schemas implements OptionInterface
|
|||||||
$tablePrefix = $connection->getTablePrefix();
|
$tablePrefix = $connection->getTablePrefix();
|
||||||
|
|
||||||
foreach (Schema::getTables($databaseName) as $table) {
|
foreach (Schema::getTables($databaseName) as $table) {
|
||||||
$tableName = Str::of($table['name'])->remove($tablePrefix);
|
$tableName = Str::of($table['name'])->replaceStart($tablePrefix, '');
|
||||||
|
|
||||||
$options[] = [
|
$options[] = [
|
||||||
'label' => $tableName . "\t\t\t\t" . $table['comment'],
|
'label' => $tableName . "\t\t\t\t" . $table['comment'],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user