Default column value not retained on column change #52199
Replies: 3 comments 5 replies
-
Please check the docs and the upgrade guide |
Beta Was this translation helpful? Give feedback.
-
@hafezdivandari thoughts on getting the original feature - where you only had to specify the things that need to change - back? This basically seems like a footgun - it's counterintuitive and easy to miss something. if nothing else some linting perhaps? seems like https://github.com/laravel-doctrine/migrations might be the solution |
Beta Was this translation helpful? Give feedback.
-
@hafezdivandari Would support for a separate method ( |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Laravel Version
11.16.0
PHP Version
8.2.18
Database Driver & Version
SQLite
Description
The defined default value is lost when modifying a column using SQLite.
Steps To Reproduce
After running the following migrations the default value of
456
is no longer present on thechanged_col_with_default
column.Please see https://github.com/workhouse-advertising/laravel-framework/tree/bugfix/modifying-column-loses-default for additions to the
testChangingColumnsWithDefaultWorks
test.Beta Was this translation helpful? Give feedback.
All reactions