File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ In `up` method of migration definition you had to write code which is called onl
1515It is standard practice to make database migrations irreversible.
1616Migrations should be backward compatible and only go forward.
1717
18- In Laravel, a missing or empty ` down ` method does not prevent rollback migration on execution of ` php artisan migrate:rollback ` .
18+ In Laravel, a missing or empty ` down ` method does not prevent rollback migration on execution of ` php artisan migrate:rollback ` CLI command .
1919The state of the database will not change, but the migration will be removed from the registry of applied migrations,
2020and the next execution of ` php artisan migrate ` will call the ` up ` method again.
2121To prevent this behavior, all migrations should have ` down ` method that will throw an Exception, nothing more.
You can’t perform that action at this time.
0 commit comments