1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-12 21:54:03 +00:00
This commit is contained in:
Samuel Štancl 2019-07-25 23:26:36 +02:00
parent ae5527c9a9
commit a3f37b7f77
7 changed files with 78 additions and 6 deletions

View file

@ -56,5 +56,11 @@ class Rollback extends RollbackCommand
// Migrate
parent::handle();
});
if (tenancy()->initialized) {
tenancy()->switchDatabaseConnection();
} else {
$this->database->disconnect();
}
}
}