mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 09:34:05 +00:00
Make phpunit run
This commit is contained in:
parent
b07f5bdc22
commit
2de46e4274
8 changed files with 40 additions and 22 deletions
|
|
@ -52,7 +52,7 @@ class Migrate extends MigrateCommand
|
|||
tenancy()->all($this->option('tenants'))->each(function ($tenant) {
|
||||
$this->line("Tenant: {$tenant['id']}");
|
||||
|
||||
$this->input->setOption('database', $tenant->getConnectionName());
|
||||
$this->input->setOption('database', $tenant->database()->getTemplateConnectionName());
|
||||
|
||||
$tenant->run(function () {
|
||||
// Migrate
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue