Created
April 22, 2020 20:27
-
-
Save ricardoaugusto/5b9bea9863df43fe33cfebda0c6c5a07 to your computer and use it in GitHub Desktop.
Laravel Restore Table
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function down() | |
{ | |
(new AnotherMigration)->up(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
A great tip from @contrerasojuanc. Useful when you need to restore a table when
php artisan migrate:rollback
without having to type all fields of the former table structure.