139
votes

I create on address table migration but one migration is already in the database it gives following error :

Base table or view already exists: 1050 Table 'notification' already exists

So, Can I run specific migration? How can I run in Laravel?

1
In your case, I would drop the schema/database and create it again.Orkhan Alikhanov
Could a mod please remove the dupe warning? A Laravel 4.x answer is far too outdated to consider this question answered. @communityjonlink
Exactly - I wanted to post an answer, but it is Laravel 5 specific, while the "duplicate" question explicitly states Laravel 4.Jan Bradáč
Commenting for better help to the new comers: Visit this tutorial for better understanding: scratchcode.io/laravel-run-specific-migrationMayank Dudakiya

1 Answers

330
votes

use this command php artisan migrate --path=/database/migrations/my_migration.php it worked for me..