diff --git a/src/Commands/Migrate.php b/src/Commands/Migrate.php index c0fc4997..bbce9d86 100644 --- a/src/Commands/Migrate.php +++ b/src/Commands/Migrate.php @@ -52,18 +52,17 @@ class Migrate extends MigrateCommand tenancy()->runForMultiple($this->option('tenants'), function ($tenant) { $this->line("Tenant: {$tenant->getTenantKey()}"); - event(new MigratingDatabase($tenant)); - try { + event(new MigratingDatabase($tenant)); // Migrate parent::handle(); + + event(new DatabaseMigrated($tenant)); } catch (Exception $th) { if (! $this->option('skip-failing')) { throw $th; } } - - event(new DatabaseMigrated($tenant)); }); } }