InfyOmLabs / laravel-generator

API and Admin Panel CRUD Generator for Laravel.
https://www.infyom.com/open-source
MIT License
3.79k stars 812 forks source link

infyom:rollback does not cleanup everything #832

Closed rabol closed 4 years ago

rabol commented 4 years ago

The rollback command does not do a rollback of the db migration and it does not delete the migration file

ajayinfyom commented 4 years ago

we already mention that things in docs: https://labs.infyom.com/laravelgenerator/docs/6.0/generator-commands#rollback.

you must be rollback migration by manually.

rabol commented 4 years ago

https://labs.infyom.com/laravelgenerator/docs/7.0/generator-commands

from the doc:

"If you have run migration on database, then better you rollback that migration first and then run infyom:rollback command, since it will delete migration file as well. Otherwise laravel can throw error about missing migration files."

as you can see,it is say that the migration file will be deleted, but the file is not deleted