laravel-modules
laravel-modules copied to clipboard
Looking for command to rollback specific table and migrate that table again
Discussed in https://github.com/nWidart/laravel-modules/discussions/1422
Originally posted by JaberWiki July 27, 2022 How to rollback migration with step or --path like default Laravel rollback commands on Laravel modules? I've tried this command
php artisan migrate:rollback --path=/Modules/ModuleName/Database/Migrations/table_name.php
or
php artisan module:migrate-rollback --path=/Modules/ModuleName/Database/Migrations/table_name.php Blog
But it's not working. Is there any command to migrate or rollback specific table?
Well, the path option is only to indicate the directory, not the file
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
It should be like that
php artisan module:migrate-rollback Product
While Product is the module name you wish to rollback current migrations
It should be like that
php artisan module:migrate-rollback ProductWhile Product is the module name you wish to rollback current migrations
Yeah, It’s also described in documentation. But I want to rollback an specific migration.
I've looked into the inner workings into migrator there's no support for this as far as I can see.