变更
This commit is contained in:
+1
-1
@@ -57,7 +57,7 @@ class BackupCommand extends Command
|
|||||||
if ($table !== null) {
|
if ($table !== null) {
|
||||||
$table = explode(',', $table);
|
$table = explode(',', $table);
|
||||||
} else {
|
} else {
|
||||||
$tmp = $data->createCommand('show tables from `users`')->all();
|
$tmp = $data->createCommand('show tables from `' . $data->database . '`')->all();
|
||||||
$table = [];
|
$table = [];
|
||||||
foreach ($tmp as $value) {
|
foreach ($tmp as $value) {
|
||||||
$table[] = current($value);
|
$table[] = current($value);
|
||||||
|
|||||||
Reference in New Issue
Block a user