Skip to content

Commit

Permalink
fix: plugin install --force
Browse files Browse the repository at this point in the history
  • Loading branch information
jevantang committed Nov 5, 2022
1 parent 4b74361 commit fab5346
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/Commands/PluginMigrateCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public function migrate(string $pluginName)
try {
$this->call('migrate', [
'--database' => $this->option('database'),
'--force' => $this->option('force') ?? false,
'--force' => $this->option('force') ?? true,
'--path' => $plugin->getMigratePath(),
'--realpath' => $this->option('realpath') ?? true,
'--schema-path' => $this->option('schema-path'),
Expand All @@ -64,7 +64,7 @@ public function migrate(string $pluginName)
$this->call('plugin:seed', [
'--class' => $this->option('seeder'),
'--database' => $this->option('database'),
'--force' => $this->option('force') ?? false,
'--force' => $this->option('force') ?? true,
]);
}

Expand Down
4 changes: 2 additions & 2 deletions src/Commands/PluginMigrateRefreshCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public function handle()
try {
$this->call('migrate:refresh', [
'--database' => $this->option('database'),
'--force' => $this->option('force') ?? false,
'--force' => $this->option('force') ?? true,
'--path' => $plugin->getMigratePath(),
'--realpath' => $this->option('realpath') ?? true,
'--step' => $this->option('step'),
Expand All @@ -45,7 +45,7 @@ public function handle()
$this->call('plugin:seed', [
'--class' => $this->option('seeder'),
'--database' => $this->option('database'),
'--force' => $this->option('force'),
'--force' => $this->option('force') ?? true,
]);
}

Expand Down
2 changes: 1 addition & 1 deletion src/Commands/PluginMigrateResetCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public function handle()
try {
$this->call('migrate:reset', [
'--database' => $this->option('database'),
'--force' => $this->option('force') ?? false,
'--force' => $this->option('force') ?? true,
'--path' => $plugin->getMigratePath(),
'--realpath' => $this->option('realpath') ?? true,
'--pretend' => $this->option('pretend') ?? false,
Expand Down
2 changes: 1 addition & 1 deletion src/Commands/PluginMigrateRollbackCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function handle()
if (glob("$path/*")) {
$this->call('migrate:rollback', [
'--database' => $this->option('database'),
'--force' => $this->option('force') ?? false,
'--force' => $this->option('force') ?? true,
'--path' => $plugin->getMigratePath(),
'--realpath' => $this->option('realpath') ?? true,
'--step' => $this->option('step'),
Expand Down
2 changes: 1 addition & 1 deletion src/Commands/PluginSeedCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function handle()
$this->call('db:seed', [
'class' => $class,
'--database' => $this->option('database'),
'--force' => $this->option('force'),
'--force' => $this->option('force') ?? true,
]);
}

Expand Down

0 comments on commit fab5346

Please sign in to comment.