-
Notifications
You must be signed in to change notification settings - Fork 15
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
SQLSTATE[HY000]: General error: 1215 Cannot add foreign key constraint (SQL: alter table groups
add constraint groups_user_id_foreign
foreign key (user_id
) references users
(id
) on delete cascade)
#22
Comments
Replace your create_groups_tables migration file with this Off topic and maybe the wrong place to post this but I don't see anything or any methods on listing Group data. Only group members, posts, etc. If you figure out how to do this I would appreciate the help. I am still very much a beginner. Thanks. `<?php use Illuminate\Database\Migrations\Migration; class CreateGroupsTables extends Migration
} |
SQLSTATE[HY000]: General error: 1215 Cannot add foreign key constraint (SQL: alter table
groups
add constraintgroups_user_id_foreign
foreign key (user_id
) referencesusers
(id
) on delete cascade).I'm getting this issue while trying to migrating _create_groups_tables. Any help plz
The text was updated successfully, but these errors were encountered: