mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-13 07:14:04 +00:00
Get multiple envs (redis/db) to run correctly
This commit is contained in:
parent
9c9858e97e
commit
8565cc7acc
19 changed files with 31 additions and 35 deletions
|
|
@ -56,7 +56,7 @@ class Migrate extends MigrateCommand
|
|||
// See Illuminate\Database\Migrations\DatabaseMigrationRepository::getConnection.
|
||||
// Database connections are cached by Illuminate\Database\ConnectionResolver.
|
||||
$this->input->setOption('database', 'tenant');
|
||||
tenancy()->initialize($tenant); // todo test that this works with multiple tenants with MySQL
|
||||
tenancy()->initialize($tenant); // todo2 test that this works with multiple tenants with MySQL
|
||||
|
||||
// Migrate
|
||||
parent::handle();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue