Skip to content

Commit 6ec0b0d

Browse files
Merge pull request #91 from TheDragonCode/3.x
Optimized commands
2 parents 0cc1dd3 + 4bc113b commit 6ec0b0d

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

src/Processors/Fresh.php

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ class Fresh extends Processor
1212
public function handle(): void
1313
{
1414
$this->drop();
15-
$this->create();
1615
$this->migrate();
1716
}
1817

@@ -23,14 +22,6 @@ protected function drop(): void
2322
}
2423
}
2524

26-
protected function create(): void
27-
{
28-
$this->runCommand(Names::INSTALL, [
29-
'--' . Options::CONNECTION => $this->options->connection,
30-
'--' . Options::FORCE => $this->options->force,
31-
]);
32-
}
33-
3425
protected function migrate(): void
3526
{
3627
$this->runCommand(Names::MIGRATE, [

src/Processors/Migrate.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ protected function ensureRepository(): void
2525
{
2626
$this->runCommand(Names::INSTALL, [
2727
'--' . Options::CONNECTION => $this->options->connection,
28+
'--' . Options::FORCE => true,
2829
]);
2930
}
3031

0 commit comments

Comments
 (0)