This commit is contained in:
2023-04-11 18:03:08 +08:00
parent a489d465a7
commit ea780bda4a
+1 -1
View File
@@ -57,7 +57,7 @@ class BackupCommand extends Command
if ($table !== null) {
$table = explode(',', $table);
} else {
$tmp = $data->createCommand('show tables from `users`')->all();
$tmp = $data->createCommand('show tables from `' . $data->database . '`')->all();
$table = [];
foreach ($tmp as $value) {
$table[] = current($value);