1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-13 07:14:04 +00:00

DatabaseManager WIP

This commit is contained in:
Samuel Štancl 2019-09-05 19:26:29 +02:00
parent 798df54d76
commit 41d8bb7e09
8 changed files with 125 additions and 78 deletions

View file

@ -54,7 +54,7 @@ class Migrate extends MigrateCommand
// See Illuminate\Database\Migrations\DatabaseMigrationRepository::getConnection.
// Database connections are cached by Illuminate\Database\ConnectionResolver.
$connectionName = "tenant{$tenant['uuid']}";
$connectionName = "tenant{$tenant['uuid']}"; // todo use Illuminate DatabaseManager reconnect()?
$this->input->setOption('database', $connectionName);
$this->database->connectToTenant($tenant, $connectionName);