1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-12 12:54:05 +00:00

getDatabaseName() -> getConnectionName()

This commit is contained in:
Samuel Štancl 2019-10-04 21:31:21 +02:00
parent 709e295048
commit f77a929113
3 changed files with 3 additions and 3 deletions

View file

@ -53,7 +53,7 @@ class Migrate extends MigrateCommand
tenancy()->all($this->option('tenants'))->each(function ($tenant) {
$this->line("Tenant: {$tenant['id']}");
$this->input->setOption('database', $tenant->getDatabaseName());
$this->input->setOption('database', $tenant->getConnectionName());
tenancy()->initialize($tenant);
// Migrate

View file

@ -53,7 +53,7 @@ class Rollback extends RollbackCommand
tenancy()->all($this->option('tenants'))->each(function ($tenant) {
$this->line("Tenant: {$tenant['id']}");
$this->input->setOption('database', $tenant->getDatabaseName());
$this->input->setOption('database', $tenant->getConnectionName());
tenancy()->initialize($tenant);
// Migrate

View file

@ -51,7 +51,7 @@ class Seed extends SeedCommand
tenancy()->all($this->option('tenants'))->each(function ($tenant) {
$this->line("Tenant: {$tenant['id']}");
$this->input->setOption('database', $tenant->getDatabaseName());
$this->input->setOption('database', $tenant->getConnectionName());
tenancy()->initialize($tenant);
// Seed