From 6a93b717e743d5dec164e3e3b9384923af359a03 Mon Sep 17 00:00:00 2001 From: "allen.yan" Date: Thu, 12 Jun 2025 15:37:14 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B3=87=E6=96=99=E5=90=8C=E6=AD=A5=20?= =?UTF-8?q?=E6=8F=9B=E8=A1=A8=E6=9C=83=E9=8C=AF=E7=9A=84=E5=95=8F=E9=A1=8C?= =?UTF-8?q?=2020250612?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Jobs/TransferSqliteTableJob.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/Jobs/TransferSqliteTableJob.php b/app/Jobs/TransferSqliteTableJob.php index 991368c..32f9037 100644 --- a/app/Jobs/TransferSqliteTableJob.php +++ b/app/Jobs/TransferSqliteTableJob.php @@ -79,9 +79,8 @@ class TransferSqliteTableJob implements ShouldQueue DB::connection($mysqlConnection)->table("_{$table}")->insert($buffer); } - DB::statement("RENAME TABLE {$table} TO {$table}_"); - DB::statement("RENAME TABLE _{$table} TO {$table}"); - DB::statement("DROP TABLE IF EXISTS {$table}_"); + DB::statement("DROP TABLE IF EXISTS {$table};"); + DB::statement("RENAME TABLE _{$table} TO {$table};"); logger()->info("✅ Imported: {$table} ({$count} records)"); } catch (\Exception $e) {