mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-13 06:54:03 +00:00
Fix #71
This commit is contained in:
parent
ae5527c9a9
commit
a3f37b7f77
7 changed files with 78 additions and 6 deletions
|
|
@ -57,6 +57,10 @@ class Migrate extends MigrateCommand
|
|||
parent::handle();
|
||||
});
|
||||
|
||||
$this->database->disconnect();
|
||||
if (tenancy()->initialized) {
|
||||
tenancy()->switchDatabaseConnection();
|
||||
} else {
|
||||
$this->database->disconnect();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue