From 40a3645a0324f7cc56fa7ad6b6395078a830616e Mon Sep 17 00:00:00 2001 From: Franck DAKIA Date: Tue, 12 May 2026 16:58:17 +0000 Subject: [PATCH] Fix migration --- src/Console/Command/MigrationCommand.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/Console/Command/MigrationCommand.php b/src/Console/Command/MigrationCommand.php index be27d1c0..ccc1c362 100644 --- a/src/Console/Command/MigrationCommand.php +++ b/src/Console/Command/MigrationCommand.php @@ -72,18 +72,15 @@ private function factory(string $type): void } try { - Database::startTransaction(); // We create the migration database status - $this->createMigrationTable($connection); + $this->createMigrationTable(); $action = 'make' . ucfirst($type); if (!method_exists($this, $action)) { throw new MigrationException("Migration action '$action' not found."); } $this->$action($migrations); - Database::commitTransaction(); } catch (Exception $exception) { - Database::rollbackTransaction(); throw new MigrationException($exception->getMessage(), (int)$exception->getCode()); } }