mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 15:54:03 +00:00
Use the hardcoded tenant dump path only if the path isn't configured
This commit is contained in:
parent
cb7567a88a
commit
f1d454de86
1 changed files with 1 additions and 1 deletions
|
|
@ -23,7 +23,7 @@ class TenantDump extends DumpCommand
|
||||||
public function handle(ConnectionResolverInterface $connections, Dispatcher $dispatcher): int
|
public function handle(ConnectionResolverInterface $connections, Dispatcher $dispatcher): int
|
||||||
{
|
{
|
||||||
if (is_null($this->option('path'))) {
|
if (is_null($this->option('path'))) {
|
||||||
$this->input->setOption('path', database_path('schema/tenant-schema.dump'));
|
$this->input->setOption('path', config('tenancy.migration_parameters.--schema-path') ?? database_path('schema/tenant-schema.dump'));
|
||||||
}
|
}
|
||||||
|
|
||||||
$tenant = $this->option('tenant')
|
$tenant = $this->option('tenant')
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue