Skip to content

Conversation

@getspooky
Copy link

There is one change in Laravel 5.8 that is not mentioned in the official Upgrade Guide but caused me problems – I couldn’t create a foreign key migration
Well, it’s easy. There are two ways to make it work:

Either change original migration from bigIncrements() to just increments();
Or in your foreign key column do bigInteger() instead of integer()

@zaibak
Copy link

zaibak commented May 30, 2019

in user migration change the bigincrement id user to increments thats all

Copy link

@codiiv codiiv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tested this and it's working in 5.8.14

Copy link

@bumbummen99 bumbummen99 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also working on 5.8.17

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

Successfully merging this pull request may close these issues.

4 participants