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

migrate error using mysql: Cannot add foreign key constraint #2

Open
LarryEitel opened this issue Jul 2, 2017 · 1 comment
Open

Comments

@LarryEitel
Copy link

I set db to mysql and when I run migrate I get:

[Illuminate\Database\QueryException]

SQLSTATE[HY000]: General error: 1215 Cannot add foreign key constraint (SQL: alter table `users` add constraint `users_sp_id_foreign` foreign key (`sp_id`) references `users` (`id`))
@codeitlikemiley
Copy link

well you can remove that its not necessary , unless you need it...
ill update it soon, but you can remove that column that should clear out

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

2 participants