-
Notifications
You must be signed in to change notification settings - Fork 39
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
Problems with the database #28
Comments
Solution You need to change the migrations, in my case my users table "id" is not a Big integer. So, you need to change the chatter migrations "user_id":
to
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
running the php artisan chatter:install shout out the following error:
In Connection.php line 671:
SQLSTATE[HY000]: General error: 1215 Cannot add foreign key constraint (SQL: alter table
chatter_d iscussions
add constraintchatter_discussions_user_id_foreign
foreign key (user_id
) referencesusers
(id
) on delete cascade on update cascade)In PDOStatement.php line 129:
SQLSTATE[HY000]: General error: 1215 Cannot add foreign key constraint
In PDOStatement.php line 127:
SQLSTATE[HY000]: General error: 1215 Cannot add foreign key constraint
The text was updated successfully, but these errors were encountered: