Skip to content

[6.x] The ensureMigrationDoesntAlreadyExist method should not check recursively #30505

@stancl

Description

@stancl
  • Laravel Version: 6.1.0+
  • PHP Version: any
  • Database Driver & Version: any

Description:

#30095 introduced a backwards incompatible change. The ensureMigrationDoesntAlreadyExist method checks for existing migrations recursively, which is wrong.

If you're creating a migration in database/migrations/, you don't care that the same migration exists in database/migrations/tenant/ because php artisan migrate only executes migrations in the main directory by default.

Steps To Reproduce:

Put the same migration in database/migrations/ and database/migrations/tenant/. php artisan migrate doesn't execute migrations inside the tenant/ subdirectory, but it will complain about the same migration existing in both directories.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions