-
Notifications
You must be signed in to change notification settings - Fork 11.1k
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
MySQL custom primary key creation still broken in 8.48.1 #37811
Comments
Hm. I just saw this issue – but I am running 8.48.1 which supposedly contains the fix. I just double-checked this and I'm definitely getting this on a newly-generated project with 8.48.1. From my composer.lock:
|
From the looks of the code in ca23daf, I guess |
@Synchro Could it be that there is a difference between mysql 5.x and 8.x? Just throwing an idea out there.. |
* Move primary after collate, fixes #37811 * Move primary after charset
Description:
Some old migrations have suddenly broken with a recent Laravel update.
Steps To Reproduce:
Create a new Laravel project:
Add this migration:
run
php artisan migrate
.It fails with this error:
The SQL it generates is incorrect:
I think the problem is that the clauses are in the wrong order, in particular the position of the
primary key
phrase. This query works fine:This issue seems to have introduced after Laravel 8.47, presumably in 8.48 or 8.48.1.
The text was updated successfully, but these errors were encountered: