Ahmed Qayyum
Ahmed Qayyum

Reputation: 137

Unable to run php artisan migrate:refresh command in Php Storm Terminal

Unable to run the php artisan migrate:refresh & php artisan migrate command in the terminal.

I created the Migration File in the directory, and then deleted it manually from the sidebar rather than make it drop through Drop command. Now, I am unable to run the migrate commands plus the raw sql queries.

enter image description here

Anyone, who can help me out? Can I restore the file which I deleted?

Upvotes: 1

Views: 684

Answers (1)

Loek
Loek

Reputation: 4135

You apparently deleted a migration called 'Add Column' and now migrate is searching for it, but can't find it. Delete this particular row manually in the migrations table in your database and the migrate should run.

Upvotes: 1

Related Questions