Migrations which upgrade mediumint
columns to int
do not have any effect
#10453
Labels
priority:0
Showstopper. Critical to the next release.
Originally reported on discord.
It appears that since #10247 (I've confirmed experimentally that it's since the laravel 10 upgrade specifically), migrations that upgrade/widen
mediumint
columns toint
have stopped functioning correctly. One such instance is this:osu-web/database/migrations/2015_01_01_133337_base_tables.php
Line 175 in 36d197d
to this:
osu-web/database/migrations/2020_05_15_083037_sync_structure.php
Line 223 in 36d197d
After running all migrations, the table should have type
int unsigned
, while in fact it appears to have typemediumint unsigned
.The direct implications of this are that:
Here is a gist with 2 excerpts of mysql statements executed during captured using
general_log
while the aforementioned migration was running.There are several threads of possibility where this might have broken (changes in dbal, laravel itself...) but given I know very little about the php ecosystem I'm not willing to hazard guesses or link any links.
It may be wise to run a full cross-check of test/local db schemas against production to make sure no other cases of such silent breakage have occurred somewhere else.
The text was updated successfully, but these errors were encountered: