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

[8.x] Order of Modifiers Amended #37782

Merged
merged 1 commit into from
Jun 23, 2021
Merged

[8.x] Order of Modifiers Amended #37782

merged 1 commit into from
Jun 23, 2021

Conversation

onelazydev
Copy link

When unsigned() was added to a migration with an integer() or bigInteger(), the
order of modifiers would result in a query like:

`field` int primary key unsigned not null

This is invalid SQL and therefore caused errors on the migrations.

Issue reported, with steps to replicate, here:

#37781

When unsigned() was added to a migration with an integer() or bigInteger(), the
order of modifiers would result in a query like:

```sql
`field` int primary key unsigned not null
```

This is invalid SQL and therefore caused errors on the migrations.

Issue reported, with steps to replicate, here:

#37781
@GrahamCampbell GrahamCampbell changed the title Order of Modifiers Amended [8.x] Order of Modifiers Amended Jun 22, 2021
@chriischambers
Copy link

This breaks our deployments so we have rolled back to 8.47 for now.

@driesvints
Copy link
Member

driesvints commented Jun 23, 2021

Probably caused by #37715. Ping @khalilst

@onelazydev
Copy link
Author

Probably caused by #37715. Ping @khalilst

Yes, I believe that to be the offending commit too. That commit was originally linked in my post, but pre-PR, I'd wrote the resolution in the issue. Appears I removed the link when I PR'd this and removed the description from the issue.

@khalilst
Copy link
Contributor

khalilst commented Jun 23, 2021

@driesvints , @onelazydev Yes, unfortunately right. I am trying to create tests to check all modifiers.

@taylorotwell taylorotwell merged commit 48ce53f into laravel:8.x Jun 23, 2021
@taylorotwell
Copy link
Member

Released 8.48.1 with this fix.

chu121su12 pushed a commit to chu121su12/framework that referenced this pull request Jun 24, 2021
When unsigned() was added to a migration with an integer() or bigInteger(), the
order of modifiers would result in a query like:

```sql
`field` int primary key unsigned not null
```

This is invalid SQL and therefore caused errors on the migrations.

Issue reported, with steps to replicate, here:

laravel#37781
driesvints added a commit that referenced this pull request Jun 25, 2021
chu121su12 added a commit to chu121su12/framework that referenced this pull request Jun 26, 2021
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.

5 participants