Skip to content

Default connection changes on migrate #369

Open
@PiranhaGeorge

Description

@PiranhaGeorge

Hi,

Just found a sneaky bug.

The tenancy:migrate command changes the default connection to tenant. This isn't a problem when using the command in the terminal, however, as it is also called from Connection::migrate(), creating a website changes the default database.

This is a huge issue for me as I'm changing the default connection via middleware so that I can use laravel passport for system and tenant apis.

I should get a chance to put in a pull request next week, unless someone else can do so sooner.

Cheers,
George

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions