Skip to content

Support Laravel 5.8#245

Open
getspooky wants to merge 1 commit intothedevdojo:masterfrom
getspooky:master
Open

Support Laravel 5.8#245
getspooky wants to merge 1 commit intothedevdojo:masterfrom
getspooky:master

Conversation

@getspooky
Copy link
Copy Markdown

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
Copy Markdown

zaibak commented May 30, 2019

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

Copy link
Copy Markdown

@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
Copy Markdown

@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