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 get this error on migrate, I use xampp version 7.2.2 with specs:
[Illuminate\Database\QueryException] SQLSTATE[HY000]: General error: 1005 Can't create table isave_db.#sql-2fbe_b (errno: 150 "Foreign key constraint is incorrectly formed") (SQL: alter table employee_salary add constraint employee_salary_employee_id_foreign foreign key (employee_id) references employee (id))
isave_db
#sql-2fbe_b
employee_salary
employee_salary_employee_id_foreign
employee_id
employee
id
The text was updated successfully, but these errors were encountered:
Add 's'
change: $table->foreign('employee_id')->references('id')->on('employee');
to: $table->foreign('employee_id')->references('id')->on('employees');
Sorry, something went wrong.
No branches or pull requests
I get this error on migrate, I use xampp version 7.2.2 with specs:
[Illuminate\Database\QueryException]
SQLSTATE[HY000]: General error: 1005 Can't create table
isave_db
.#sql-2fbe_b
(errno: 150 "Foreign key constraint is incorrectly formed") (SQL: alter tableemployee_salary
add constraintemployee_salary_employee_id_foreign
foreign key (employee_id
) referencesemployee
(id
))The text was updated successfully, but these errors were encountered: