Skip to content

Commit eb12113

Browse files
committed
Fix STDIN error when setting up tenant database
1 parent 9665af3 commit eb12113

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/Drivers/Multi/Listeners/SetUpTenantDatabase.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ public function handle(TenantDatabaseCreated $event)
3232
protected function migrate(Tenant $tenant)
3333
{
3434
$migration = Artisan::call('tenants:migrate', [
35-
'--tenants' => [$tenant->id]
35+
'--tenants' => [$tenant->id],
36+
'--force' => true,
3637
]);
3738

3839
return $migration === 0;
@@ -47,7 +48,8 @@ protected function migrate(Tenant $tenant)
4748
protected function seed(Tenant $tenant)
4849
{
4950
return Artisan::call('tenants:seed', [
50-
'--tenants' => [$tenant->id]
51+
'--tenants' => [$tenant->id],
52+
'--force' => true,
5153
]);
5254
}
5355
}

0 commit comments

Comments
 (0)