Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue when trying artisan command #3

Open
jamesdef opened this issue Jul 25, 2014 · 2 comments
Open

Issue when trying artisan command #3

jamesdef opened this issue Jul 25, 2014 · 2 comments

Comments

@jamesdef
Copy link

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
Copy link

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
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants