Fix migration runner for MySQL DDL implicit commit

This commit is contained in:
Alex Assistant 2026-02-20 14:13:59 +03:00
parent 883ff30877
commit aa2f064d08

View File

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