Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[6.x] migrate --seed should seed the same database #31678

Merged
merged 2 commits into from
Mar 2, 2020
Merged

[6.x] migrate --seed should seed the same database #31678

merged 2 commits into from
Mar 2, 2020

Conversation

louisgab
Copy link
Contributor

@louisgab louisgab commented Mar 2, 2020

TLDR
This pull enables php artisan migrate --seed --database=xxx to seed the same database

Current behaviour
Currently if you run php artisan migrate --seed --database=xxx, the specified database will be migrated but seed will be run on default connection

Expected behaviour
php artisan migrate --seed --database=xxx should migrate and seed the same specified database

Solution
This pull passes the arguments of the MigrateCommand to the SeedCommand, so if --database is specified it will be used

@driesvints driesvints changed the title migrate --seed should seed the same database [6.x] migrate --seed should seed the same database Mar 2, 2020
@GrahamCampbell
Copy link
Member

Reverted because this is a major breaking change. It may be included in 7.x instead.

voku added a commit to voku/framework that referenced this pull request Mar 2, 2020
* upstream/6.x: (21 commits)
  Revert "[6.x] migrate --seed should seed the same database (laravel#31678)" (laravel#31685)
  [6.x] Allow easier customization of the queued mailable job (laravel#31684)
  [6.x] migrate --seed should seed the same database (laravel#31678)
  [6.x] Make newPivotQuery public (laravel#31677)
  [6.x] update changelog
  Fix flakey memcached tests (laravel#31646)
  Fixed phpdoc
  formatting
  [6.x] Expose Notification Id within Message Data (laravel#31632)
  [6.x] Add support for Arr::hasAny (laravel#31636)
  Fix phpdoc
  [6.x] update changelog
  [6.x] update changelog
  Fix styling for phpdoc
  Create resolve method which loads deferred providers if needed
  Revert "Call make instead of resolve to load deffered providers"
  Call make instead of resolve to load deffered providers
  Add test that failes to load deffered provider of implementation while accessing class through interface
  Use correct locale when resolving Faker from the container (laravel#31615)
  clean-up-some-methods
  ...

# Conflicts:
#	src/Illuminate/Database/DatabaseServiceProvider.php
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants