-
Notifications
You must be signed in to change notification settings - Fork 66
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
Migrate Error Laravel 8 #7
Comments
Can you share the scheme of service table and categories table @AimanHakeem Because sometimes its the difference between the type of column in tables |
@ikramulmustafa
categories_table.php
|
2021-06-15_103121_create_categories_table rename categories migration file to this |
Same issue , i tried to migrate the categories table first. @ikramulmustafa |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I get this error when try to migrate the files to DB.
SQLSTATE[HY000]: General error: 1215 Cannot add foreign key constraint (SQL: alter table
services
add constraintservices_category_id_foreign
foreign key (category_id
) referencescategories
(id
) on delete cascade)Running on Laravel 8 , MySQL 5.7 , PHP 8.1.7
The text was updated successfully, but these errors were encountered: