From which Laravel version the change() method started requiring all column modifiers to be explicitly specified? #58097
Unanswered
tatata-keshi
asked this question in
Q&A
Replies: 2 comments
-
|
That comes probably from the fact that Laravel stepped away from their doctrine dependency. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Since Laravel 10, we have native column modifiying, but for backward compatibilty doctrine dbal is also still supported, so if you have Since Laravel 11, the doctrine dbal is removed from the framework and replaced with the native functionality, here is the PR: #48864 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi!
The Modifying Columns section in the Laravel 11.x Upgrade Guide states that, in Laravel 10, column attributes were retained when calling
change()even if each modifier was not explicitly specified:However, the Laravel 10.x documentation seems to state the opposite:
Because of this, the two documents appear to be contradictory.
I have also looked into the implementation of
compileChange()in the schema grammars, and it seems that the behavior around column modification has changed across major versions.Could you clarify from which Laravel version the
change()method started requiring all column modifiers to be explicitly specified?In other words, was this a behavioral change introduced in Laravel 10, or in Laravel 11?
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions