mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 22:14:03 +00:00
Merge branch 'master' of github.com:archtechx/tenancy
This commit is contained in:
commit
9a8e95c9f6
3 changed files with 38 additions and 0 deletions
|
|
@ -22,6 +22,10 @@ class TenantDump extends DumpCommand
|
|||
|
||||
public function handle(ConnectionResolverInterface $connections, Dispatcher $dispatcher): int
|
||||
{
|
||||
if (is_null($this->option('path'))) {
|
||||
$this->input->setOption('path', database_path('schema/tenant-schema.dump'));
|
||||
}
|
||||
|
||||
$tenant = $this->option('tenant')
|
||||
?? tenant()
|
||||
?? $this->ask('What tenant do you want to dump the schema for?')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue