We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I am having some issues when I run php artisan migrate:fresh --seed . Please advise what to do.
[41;1m Illuminate\Database\QueryException [49;22m : [33mSQLSTATE[HY000]: General error: 1215 Cannot add foreign key constraint (SQL: alter table collections add constraint collections_branch_id_foreign foreign key (b ranch_id) references users (id) on delete cascade)[39m
collections
collections_branch_id_foreign
b ranch_id
users
id
[41;1m Illuminate\Database\QueryException [49;22m : [33mSQLSTATE[23000]: Integrity constraint violation: 1048 Column 'branch_id' cannot be null (SQL: insert into collections (branch_id, amount, service_types_id, collections_types_id, date, updated_at, created_at) values (, 7181, , , 2018-02-22 06:57:52, 2019-10-31 13:32:18, 2019-10-31 13:32:18))[39m
branch_id
amount
service_types_id
collections_types_id
date
updated_at
created_at
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I am having some issues when I run php artisan migrate:fresh --seed . Please advise what to do.
[41;1m Illuminate\Database\QueryException [49;22m : [33mSQLSTATE[HY000]: General error: 1215 Cannot add foreign key constraint (SQL: alter table
collections
add constraintcollections_branch_id_foreign
foreign key (b ranch_id
) referencesusers
(id
) on delete cascade)[39m[41;1m Illuminate\Database\QueryException [49;22m : [33mSQLSTATE[23000]: Integrity constraint violation: 1048 Column 'branch_id' cannot be null (SQL: insert into
collections
(branch_id
,amount
,service_types_id
,collections_types_id
,date
,updated_at
,created_at
) values (, 7181, , , 2018-02-22 06:57:52, 2019-10-31 13:32:18, 2019-10-31 13:32:18))[39mThe text was updated successfully, but these errors were encountered: