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

Running tenants:migrate-fresh with env #1306

Open
giorgiopogliani opened this issue Jan 30, 2025 · 0 comments
Open

Running tenants:migrate-fresh with env #1306

giorgiopogliani opened this issue Jan 30, 2025 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@giorgiopogliani
Copy link

giorgiopogliani commented Jan 30, 2025

Bug description

Artiasan commands have an env option to run with a given env (e.g. --env=testing). When I run artisan tenants:migrate-fresh --env=testing the worng database gets refreshed

Steps to reproduce

  • Have a .env and a .env.testing with different db configurations / tenants
  • Run artisan tenants:migrate-fresh --env=testing
  • The testing db didn't get refreshed

Expected behavior

The testing db and tenants get refreshed and the local/default db is left untouched

Laravel version

Laravel 10.48.26

stancl/tenancy version

3.8.5

@giorgiopogliani giorgiopogliani added the bug Something isn't working label Jan 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants