8000 Running tenants:migrate-fresh with env · Issue #1306 · archtechx/tenancy · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Running tenants:migrate-fresh with env #1306
Open
@giorgiopogliani

Description

@giorgiopogliani

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0