I tried building a database where I forgot to place the index of the table. Now I'm trying to rollback the migration but its not working out. It is throwing some error
[ErrorException] Undefined index: 2017_01_06_195028_create_users_themes_table
Now I tried deleting it manually so I deleted the migration file from the database folder and then did composer dump-autoload
, and then did rollback
it is still showing same error. Also when this didn't happened I tried placing index
in the table
through phpmyAdmin
, it ain't helped! Still i deleted the table manually and tried doing composer dump-autoload
and rollback
it still has same error.
Help me out with this.
I forgot to mention that I'm having my migration files in different folder so everytime I'm doing a
php artisan migrate rollback
I need to specify the path of those migration file that is why it is showing undefined Index error.