hoadv / employee-mgmt-laravel5.4-adminlte

The project is using laravel 5.4 and adminlte
MIT License
140 stars 183 forks source link

Issue when running the migrate #4

Closed tons613 closed 6 years ago

tons613 commented 7 years ago

When i run the migrate command I got the error below. Any idea on how to fix it?

[Illuminate\Database\QueryException]
SQLSTATE[HY000]: General error: 1005 Can't create table employee_db.#sql-123c_53 (errno: 150 "Foreign key constraint is incorrectly formed") (SQL: alter table employees add cons
traint employees_city_id_foreign foreign key (city_id) references city (id))

bodoschmidt commented 7 years ago

I have the same Porblem

AnjanRaoCh commented 7 years ago

Getting the same problem here

Manuchekhr commented 7 years ago

i have these problems too

frogetii commented 7 years ago

I have the same problem too. Anyone out there?

hoadv commented 6 years ago

Refer to hot fix 1 and 2: https://www.youtube.com/watch?v=bDmmKOdgIeY https://www.youtube.com/watch?v=cEdQvdYLuSg