chore: Database migration SQL - auth0_sub to UUID (#206) #211
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Relates to #206
Milestone 1: Database migration SQL
Multi-phase SQL migration to convert all user_id columns from VARCHAR(255) storing auth0_sub to UUID referencing user_profiles.id.
Phases
user_profile_id UUIDcolumn to all 18 affected tablesuser_profilesjoinid UUID PK, adduser_profile_id UUID, backfill, create user_profiles for admins without oneuser_profile_idtouser_idFiles
backend/src/features/user-profile/migrations/005_migrate_user_id_to_uuid.sql(new)Acceptance Criteria