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) {