Laravel (005) Database Migration/Creation

I encountered an issue with my DB migration

C:\wamp\www\blog2>php artisan migrate:refresh

[ErrorException]
Undefined index: 2017_02_18_144317_create_tasks_table

C:\wamp\www\blog2>php artisan migrate:refresh
Migration table not found.
Migration table created successfully.
Migrated: 2017_02_18_152427_create_users_table

C:\wamp\www\blog2>php artisan migrate:refresh
Rolled back: 2017_02_18_152427_create_users_table
Migrated: 2017_02_18_152427_create_users_table

 

The issue was due to the Table MIGRATIONS containing non existent table definition (that got created/migrated before) so the system encountered an error when re-creating the table. Dropping the table MIGRATIONS an running the refresh command should resolve the issue

 

Leave a Reply

Your email address will not be published. Required fields are marked *