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

Foreign key constraint is incorrectly formed #1

Open
blessed-programmer opened this issue Dec 6, 2019 · 1 comment
Open

Foreign key constraint is incorrectly formed #1

blessed-programmer opened this issue Dec 6, 2019 · 1 comment

Comments

@blessed-programmer
Copy link

SQLSTATE[HY000]: General error: 1005 Can't create table testdb.projects (errno: 150 "Foreign key constraint is incorrectly formed") (SQ

L: alter table projects add constraint projects_cout_id_foreign foreign key (cout_id) references couts (id) on update cascade)

I Made migration and database but there a single table is not working anyone help me out here thanks in advance :)

@hkmt13
Copy link

hkmt13 commented Aug 15, 2020

did you find the database file?

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