Squishing only certain migrations by date or range #43245
Unanswered
JoshSalway
asked this question in
Ideas
Replies: 1 comment
-
Agree. Although a simple command should be possible to allow 'everything before ' as that is probably the most used use case. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Squishing migrations as mentioned in the Laravel docs could be improved to allow developers to squish certain migrations in a range. For example, perhaps you have old migrations you would like to squish but the newer ones you may want to keep. Also, certain migrations are useful to keep together in 1 file when you create 4 new migrations and are about to commit changes.
This command could contain flags for dates or specific migrations to merge between:
php artisan schema:dump --prune
Reference:
https://laravel.com/docs/9.x/migrations#squashing-migrations
Beta Was this translation helpful? Give feedback.
All reactions