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