lundi 23 avril 2018

Laravel runs migration even they are already migrated in migrations table

The laravel is showing weird behavior while trying to run php artisan migrate. There are more than 400 migrations that are already being migrated. A day back the backup of database was made and replicate of code was done. The code used backup database. So it had migrations table with all migrated script.

When I tried to run the command php artisan migrate, the migration started migrating scripts from the beginning. This caused Base Table/View abc already exists.

I wanted to identify the reason laravel is showing such odd behavior and solution to it.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire