Skip to content

Commit dce0e2c

Browse files
Merge pull request #116 from TheDragonCode/4.x-1
Renamed `migrate` methods with `actions`
2 parents 098e422 + 7f9db53 commit dce0e2c

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

src/Console/Actions.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
use DragonCode\LaravelActions\Constants\Names;
66
use DragonCode\LaravelActions\Constants\Options;
7-
use DragonCode\LaravelActions\Processors\Migrate as MigrateProcessor;
7+
use DragonCode\LaravelActions\Processors\Actions as ActionsProcessor;
88
use DragonCode\LaravelActions\Processors\Processor;
99

1010
class Actions extends Command
@@ -13,7 +13,7 @@ class Actions extends Command
1313

1414
protected $description = 'Run the actions';
1515

16-
protected Processor|string $processor = MigrateProcessor::class;
16+
protected Processor|string $processor = ActionsProcessor::class;
1717

1818
protected bool $secure = false;
1919

src/Processors/Migrate.php renamed to src/Processors/Actions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
use DragonCode\Support\Facades\Helpers\Str;
1414
use Throwable;
1515

16-
class Migrate extends Processor
16+
class Actions extends Processor
1717
{
1818
public function handle(): void
1919
{

src/Processors/Fresh.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class Fresh extends Processor
1212
public function handle(): void
1313
{
1414
$this->drop();
15-
$this->migrate();
15+
$this->actions();
1616
}
1717

1818
protected function drop(): void
@@ -22,7 +22,7 @@ protected function drop(): void
2222
}
2323
}
2424

25-
protected function migrate(): void
25+
protected function actions(): void
2626
{
2727
$this->runCommand(Names::ACTIONS, [
2828
'--' . Options::CONNECTION => $this->options->connection,

src/Processors/Refresh.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public function handle(): void
1515
$path = $this->options->path;
1616

1717
$this->runReset($connection, $path);
18-
$this->runMigrate($connection, $path);
18+
$this->runActions($connection, $path);
1919
}
2020

2121
protected function runReset(?string $connection, ?string $path, bool $realPath = true): void
@@ -28,7 +28,7 @@ protected function runReset(?string $connection, ?string $path, bool $realPath =
2828
]);
2929
}
3030

31-
protected function runMigrate(?string $connection, ?string $path, bool $realPath = true): void
31+
protected function runActions(?string $connection, ?string $path, bool $realPath = true): void
3232
{
3333
$this->runCommand(Names::ACTIONS, [
3434
'--' . Options::CONNECTION => $connection,

0 commit comments

Comments
 (0)