From aa2f064d083abfd1cf8ce87f14432e87ab8c4124 Mon Sep 17 00:00:00 2001 From: Alex Assistant Date: Fri, 20 Feb 2026 14:13:59 +0300 Subject: [PATCH] Fix migration runner for MySQL DDL implicit commit --- scripts/migrate.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/scripts/migrate.php b/scripts/migrate.php index 06f6182..d0edf56 100755 --- a/scripts/migrate.php +++ b/scripts/migrate.php @@ -34,13 +34,10 @@ foreach ($files as $file) { throw new RuntimeException("Cannot read {$file}"); } - $pdo->beginTransaction(); try { $pdo->exec($sql); $mark->execute(['name' => $name]); - $pdo->commit(); } catch (Throwable $e) { - $pdo->rollBack(); throw $e; } }