Skip to content

fix: widen file_size_bytes to BigInteger (int4 -> bigint)#104

Merged
ravirajsinh45 merged 3 commits into
mainfrom
fix/media-filesize-bigint
Jul 7, 2026
Merged

fix: widen file_size_bytes to BigInteger (int4 -> bigint)#104
ravirajsinh45 merged 3 commits into
mainfrom
fix/media-filesize-bigint

Conversation

@ravirajsinh45

Copy link
Copy Markdown
Contributor

Widen MediaFile.file_size_bytes and CommentAttachment.file_size_bytes from Integer (int4, ~2.1 GB ceiling) to BigInteger, so files larger than ~2.1 GB can be recorded (media files support 10 GB+). Includes the Alembic ALTER COLUMN migration (with a lock/downtime note) + structural tests.

Replaces #99, which GitHub auto-closed when #98's base branch was deleted on merge. Same change — the branch was rebased onto main.

Verification

  • Backend suite green on this branch (97 pass).

CHANGELOG entry under [Unreleased].

MediaFile.file_size_bytes and CommentAttachment.file_size_bytes were INTEGER
(int4, ~2.1GB ceiling), so files >2GB could not be recorded — undermining #64
(unlimited per-file uploads) and #98 (instance storage accounting). Migrate both
columns to BigInteger with an alembic migration. Structural tests added.
@ravirajsinh45 ravirajsinh45 merged commit 2e14954 into main Jul 7, 2026
4 checks passed
@ravirajsinh45 ravirajsinh45 deleted the fix/media-filesize-bigint branch July 7, 2026 05:46
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.

1 participant