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