Skip to content

Conversation

@douglas-xt
Copy link
Contributor

This PR adds user_id column to file_versions table to enable direct user-based queries. This field will be used to calculate storage usage including version sizes and to efficiently remove all user versions when downgrading to a plan without versioning support. Since file versioning is a new feature with minimal production data, this is the ideal time to add this denormalized column for simpler and faster queries.

@sg-gs
Copy link
Member

sg-gs commented Dec 26, 2025

use user.uuid @douglas-xt

@douglas-xt douglas-xt force-pushed the migration/fv-add-user-id-to-file-versions branch from dbcd9c6 to a3c8a89 Compare December 30, 2025 07:20
@sonarqubecloud
Copy link

Copy link
Contributor

@jzunigax2 jzunigax2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, lets wait on @sg-gs to apply the migration

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants