jeudi 3 décembre 2015

laravel 5.1 migration debug error

After creating multiple migrations I started editing these and sometimes testing them out. All was working well untill I tried the use of foreign keys taken from this example.

For some reason this wasn't working for me, so I decided to remove everything with foreign. Now when I run a php artisan migrate I get the following error:

[Symfony\Component\Debug\Exception\FatalErrorException] syntax error, unexpected ';'

I know it's related to one of the migrations I edited, but how can I quickly find it without going through all the migrations I created.

My question isn't about where my problem is (so my exact code isn't necessary), but how to debug efficiently?

EDIT:

I just tried php artisan:rollback and that works.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire