fix: 修复代码删除表名前缀 #77

This commit is contained in:
JaguarJack 2025-04-19 17:15:41 +08:00
parent 8f65a2bf99
commit 3ca6cea6ad

View File

@ -17,7 +17,7 @@ class Schemas implements OptionInterface
$tablePrefix = $connection->getTablePrefix();
foreach (Schema::getTables($databaseName) as $table) {
$tableName = Str::of($table['name'])->remove($tablePrefix);
$tableName = Str::of($table['name'])->replaceStart($tablePrefix, '');
$options[] = [
'label' => $tableName . "\t\t\t\t" . $table['comment'],