ryssbowh / unique-migrations
Overrides Laravel migration creator to create migrations with unique names
1.0
2019-08-09 16:29 UTC
Requires
- illuminate/database: ^5.7
- illuminate/filesystem: ^5.7
This package is auto-updated.
Last update: 2024-11-10 05:03:53 UTC
README
This package allows to have migrations with unique names.
Why ? When several developers are working on the same project, they might create migrations that have the same name, when batch migrating several migrations and two have the same name, Laravel throws an exception.
This package change the name of migrations and adds a microseconds timestamp to it.
Install
Register the service provider Ryssbowh\MigrationServiceProvider
, use ./artisan migrate
and ./artisan make:migration
as before.