Skip to content

Issue  #11

@chisumo2016

Description

@chisumo2016

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

[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

Metadata

Metadata

Assignees

No one assigned

    Labels

    laterwill attend to later

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions