I need to rollback a specific table as I forgot to mention foreign key. and I dont want my data loss from all tables.
My framework is Laravel 5.4
Thanks in Advance Everyone
I do it this way:
php artisan migrate
;For example, if you modified migration called "Settings", then you delete this table from DB and migrations table, then rerun artisan command.
You can do
php artisan migrate:rollback --path=/database/migrations/your_file.php
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With