You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the migration file is already prefixed by a date and time.
the package is configured with ->runsMigrations() in it's ServiceProvider.
publish the migrations of the package.
then the published migration name would prefixed by date again!
I reproduced this issue not only in my private package, but also in filament-attachmate package, which has a migration named as database/migrations/2024_02_24_192352_create_attachments_table.php
everything is ok and the migration is successfully loaded.
but after publishing the migration, the published filename would be prefixed again with a new date time string:
Copying file [vendor/zeeshantariq/filament-attachmate/database/migrations/2024_02_24_192352_create_attachments_table.php] to [database/migrations/2024_10_07_135947_2024_02_24_192352_create_attachments_table.php] DONE
the published file is prefixed by 2024_10_07_135947_2024_02_24_192352_ which is the date in vendor's filename prefixed by published date!
Steps to reproduce this issue:
->runsMigrations()
in it's ServiceProvider.then the published migration name would prefixed by date again!
I reproduced this issue not only in my private package, but also in filament-attachmate package, which has a migration named as
database/migrations/2024_02_24_192352_create_attachments_table.php
and the package's service provider is allowed to run migrations:
everything is ok and the migration is successfully loaded.
but after publishing the migration, the published filename would be prefixed again with a new date time string:
the published file is prefixed by
2024_10_07_135947_2024_02_24_192352_
which is the date in vendor's filename prefixed by published date!Some changes in the generateMigrationName method might fix this issue.
The text was updated successfully, but these errors were encountered: