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

Only prepends datetime if not already set. #155

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

philipsorensen
Copy link

This should fix the issue where a migration can be prefixed with a datetime twice (mentioned here #143).

Adds a method called startsWithDatetime that can be extended if needed.

In the filament-attachmate package I copied the migration file and removed the datetime in the name for testing.

Screenshot from 2025-01-16 08-10-32

When running

php artisan vendor:publish --tag=filament-attachmate-migrations

I get the following as expected.

Screenshot from 2025-01-16 08-14-18

Screenshot from 2025-01-16 08-14-50

@freekmurze
Copy link
Member

Could you add a test for this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants