From 6aac4ac87855b12d18e2f497b924f09a6fbe6eef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Wed, 12 Apr 2023 10:07:45 +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 | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/BackupCommand.php b/BackupCommand.php index 9c10f36..5305f78 100644 --- a/BackupCommand.php +++ b/BackupCommand.php @@ -93,8 +93,7 @@ class BackupCommand extends Command } file_put_contents($tmp, ''); - file_put_contents($tmp, $database . ';' . PHP_EOL, FILE_APPEND); - + $tableCreator = next($tableInfo); if (preg_match('/AUTO_INCREMENT=\d+\s/', $tableCreator)) { $tableCreator = preg_replace('/AUTO_INCREMENT=\d+\s/', 'AUTO_INCREMENT=1 ', $tableCreator); @@ -306,4 +305,4 @@ class BackupCommand extends Command usleep(50000); } -} \ No newline at end of file +}