This commit is contained in:
2023-04-12 10:07:45 +08:00
parent 522d9233ca
commit 6aac4ac878
+2 -3
View File
@@ -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);
}
}
}