hoadv / employee-mgmt-laravel5.4-adminlte

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

migration issues #12

Closed Mahantesh-A-Policepatil closed 6 years ago

Mahantesh-A-Policepatil commented 6 years ago

country, state,city,department and devision migration files should have lesser time stamps than employees migration file.

at present employee table is being created first before creating child tables like country,state, city, devision and department so it is giving error saying foreign key constraint wrongly framed.

so we need to create the child tables first so that employee table can have foreign keys for these child tables.

currently migration error is there, i resolved it by changing file name of the child tables, I gave lesser date and executed following command,

"php artisan migrate"

migration was succesfully completed..