You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Test for migrating int to bigint is not in sync with expected result description #3933
Test comment says the migration will be left to the user, however the warning is not produced.
I believe this is due to if (!srcColumn.like(dstColumn)) treating int and bigint as alike in generateTableMigration(). As a result, the code that would add the warning is not executed.
@borutjures - The tests are valid and represent our expected behavior.
We do not want to issue a warning for this. The bigint column type will be used for new tables, but for older tables, int will continue to be used and should produce no error.
Activity
SandPod commentedon Oct 1, 2025
@borutjures - The tests are valid and represent our expected behavior.
We do not want to issue a warning for this. The
bigintcolumn type will be used for new tables, but for older tables,intwill continue to be used and should produce no error.This is documented in the migration guide for 2.0 where this was introduced: https://docs.serverpod.dev/upgrading/upgrade-to-two#integer-representation-changed-to-bigint