andheiberg / laravel-messenger

Basic messaging package for laravel
67 stars 14 forks source link

Issue when trying artisan command #3

Open jamesdef opened 10 years ago

jamesdef commented 10 years ago

Hi there,

I'm getting this error when trying to run the artisan command 'php artisan messenger:setup'

[Illuminate\Database\QueryException] SQLSTATE[HY000]: General error: 1215 Cannot add foreign key constraint (SQL : alter table participants add constraint participants_conversation_id_fo reign foreign key (conversation_id) references conversations (id))

would anyone have similar problems? thanks!

bkrajendra commented 10 years ago

I resolved it by running migration one by one. cut and paste migrations from source to some other place. then put each migrate file one by one at its actual location and run "php artisan migrate --package adheiberg/messenger" .. repeat this for all migration files.... if its giving error try deleting migration entries from migration table before u run migrate. I HOPE THIS HELPS..!

andheiberg commented 10 years ago

Hi there,

Sorry I didn't reply before now. I thought the email was for another project I'm not the maintainer of.

I will get back to you as soon as possible with a fix.