mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 20:34:03 +00:00
Remove redundant store variable
This commit is contained in:
parent
9f83a65f22
commit
d7f7ad3ce6
1 changed files with 2 additions and 4 deletions
|
|
@ -36,13 +36,11 @@ final class MigrateFresh extends Command
|
||||||
*/
|
*/
|
||||||
public function handle()
|
public function handle()
|
||||||
{
|
{
|
||||||
$dropViewsFlag = $this->option('drop-views');
|
tenancy()->runForMultiple($this->option('tenants'), function ($tenant) {
|
||||||
|
|
||||||
tenancy()->runForMultiple($this->option('tenants'), function ($tenant) use ($dropViewsFlag) {
|
|
||||||
$this->info('Dropping tables.');
|
$this->info('Dropping tables.');
|
||||||
$this->call('db:wipe', array_filter([
|
$this->call('db:wipe', array_filter([
|
||||||
'--database' => 'tenant',
|
'--database' => 'tenant',
|
||||||
'--drop-views' => $dropViewsFlag,
|
'--drop-views' => $this->option('drop-views'),
|
||||||
'--force' => true,
|
'--force' => true,
|
||||||
]));
|
]));
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue