Skip to content

[Bug]: When a migration with the same name exists, publishing migration is skipped #373

@StanMenten99

Description

@StanMenten99

What happened?

When I have a migration for categories (different use-case) I get the following message:
File [database/migrations/2025_02_17_114942_create_categories_table.php] already exists SKIPPED

This leads to the error where the migration fails.
Failed to open the referenced table 'bolt_categories'

I fixed this issue by manually copy over the stub to a new created migration.
But I had to run this migration as first in order to work correctly.

How to reproduce the bug

Run the bolt:install command, while having one or more similar named migrations.

Package Version

3.0.88

PHP Version

8.3

Laravel Version

12.13.0

Which operating systems does with happen with?

macOS

Notes

No response

Metadata

Metadata

Assignees

No one assigned

    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