1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-05 13:34:04 +00:00

Use the hardcoded tenant dump path only if the path isn't configured

This commit is contained in:
lukinovec 2022-11-23 13:04:57 +01:00
parent cb7567a88a
commit f1d454de86

View file

@ -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')