CrestApps / laravel-code-generator

An efficient Laravel code generator, saving time by automating the creation of resources such as views, controllers, routes, migrations, languages, and form-requests. Highly flexible and customizable, it includes a cross-browser compatible template and client-side validation for application modernization.
https://laravel-code-generator.crestapps.com
MIT License
731 stars 157 forks source link

Laravel 7.x migration reference to `users` table `id` getting error incorrectly formed error #167

Open AjithLalps opened 4 years ago

AjithLalps commented 4 years ago

Before you submit an issue please read this

This repository is only for reporting bugs or issues. If you need support, please use Stack Overflow using laravel-code-generator tag (https://stackoverflow.com/questions/tagged/laravel-code-generator)

Please provide us with details by completing the following requirements. Issues with not enough info are likely to be closed without resolution.

Environment:

Description:

When generating migration, that contains a reference to users table id getting error incorrectly formed error. since laravel 7.x id() returns bigIncrements field.

Steps/Commands To Reproduce:

change the database engine to InnoDB. Then add a field to migration file something like created_by that references id on users table. Then run the migration.

Content Of The Resource-File:

MikeAlhayek commented 8 months ago

are you able to provide the commands to reproduce the issue?