Skip to content

Commit

Permalink
Merge branch '8.x' into 9.x
Browse files Browse the repository at this point in the history
Signed-off-by: Mior Muhammad Zaki <[email protected]>
  • Loading branch information
crynobone committed Dec 18, 2024
2 parents 1c0f93b + 09267b4 commit 1ed7f41
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG-8.x.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@

This changelog references the relevant changes (bug and security fixes) done to `orchestra/workbench`.


## 8.15.1

Released: 2024-12-18

### Fixes

* Fix `workbench:install` generating migrate-fresh command with incorrect options.

## 8.15.0

Released: 2024-12-16
Expand Down
6 changes: 6 additions & 0 deletions src/Console/InstallCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,8 @@ protected function copyTestbenchConfigurationFile(Filesystem $filesystem, string
'{{WorkbenchDatabaseSeeder}}',
'{{ WorkbenchDatabaseSeeder }}',
'Workbench\Database\Seeders\DatabaseSeeder',

' - migrate-fresh',
],
[
$workbenchAppNamespacePrefix,
Expand All @@ -154,6 +156,10 @@ protected function copyTestbenchConfigurationFile(Filesystem $filesystem, string
$databaseSeeder,
$databaseSeeder,
$databaseSeeder,

$databaseSeeder === 'Database\Seeders\DatabaseSeeder'
? ' - migrate-fresh'
: ' - migrate-fresh:'.PHP_EOL.' --seed: true',
],
$to
);
Expand Down
3 changes: 1 addition & 2 deletions src/Console/stubs/testbench.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ workbench:
- asset-publish
- create-sqlite-db
- db-wipe
- migrate-fresh:
--seed: true
- migrate-fresh
assets:
- laravel-assets
sync: []

0 comments on commit 1ed7f41

Please sign in to comment.