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 +}