From 5600ede42066b6e49ced0d353cdcf8ea79883a64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Wed, 12 Apr 2023 10:08:11 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=98=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BackupCommand.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/BackupCommand.php b/BackupCommand.php index 5305f78..8e1064c 100644 --- a/BackupCommand.php +++ b/BackupCommand.php @@ -68,11 +68,7 @@ class BackupCommand extends Command $table[] = current($value); } } - - $databaseInfo = $data->createCommand('show create DATABASE `' . $data->database . '`')->one(); - - $database = next($databaseInfo); - + $path = $input->getArgument('path'); if (!str_starts_with($path, '/')) { $path = APP_PATH . $path;