Fix user_auth_uid type in user_role migration#7
Conversation
The type of the `user_auth_uid` column was modified in 80156fc to a UUID which breaks the foreign key reference. The original VARCHAR type was correct.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughAlembic migration changes ChangesUser Workspace Roles Schema Addition
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
The type of the
user_auth_uidcolumn was modified in 80156fc to a UUID which breaks the foreign key reference tousers.auth_uid. The originalVARCHARtype was correct.Changes
File:
alembic_osm/versions/9221408912dd_add_user_role_table.pyThe
user_auth_uidcolumn type in theuser_workspace_rolestable creation was changed fromsa.Uuid()tosa.String(), correcting a type mismatch that broke the foreign key reference tousers.auth_uid.Rationale: The
users.auth_uidcolumn uses VARCHAR type, so theuser_auth_uidcolumn in theuser_workspace_rolestable must also be a string type to properly maintain the foreign key constraint.