Skip to content
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

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

Open
AjithLalps opened this issue Aug 8, 2020 · 1 comment
Milestone

Comments

@AjithLalps
Copy link

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:

  • Laravel-Code-Generator Version: 2.4.4
  • Laravel Version: 7.23.0

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
Copy link
Collaborator

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

@MikeAlhayek MikeAlhayek added this to the 3.x milestone Jan 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants