Repository navigation
Schema diff: see exactly what your last migration changed (v1.4.0) #15
Pinned
albertoarena
announced in
Announcements
Replies: 0 comments
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.
Truss v1.4.0 adds schema diff: a clear, structure-only view of what your last migration changed, with nothing to wire up.
After each migration, Truss records the previous schema as a baseline and compares it against the current one. You get the diff in two places:
php artisan truss:diff. The same diff in your terminal, so you can eyeball a migration before it merges or fail a CI step on an unexpected change.As always, structure only, never row data. The baseline is a single structure-only JSON file (the only thing Truss writes to disk), and you can turn the whole feature off with
TRUSS_DIFF_ENABLED=falseso nothing is written at all.Update with
composer update albertoarena/laravel-truss.Feedback and ideas welcome in the comments. If Truss is useful to you, hit Watch > Custom > Releases at the top of the repo to hear about the next one.
All reactions