Use uniqueidentifier as primary-key fails in combination with foreign keys #585
Unanswered
matthiasburger
asked this question in
Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
First Check
Commit to Help
Example Code
Description
specify the relation like this:
try to generate the alembic migration - alembic ignores the foreign key constraint.
if the types are like char(32) and generated uuid, it works - but as soon as you use
sa_column
it seems like the foreign_key parameter is ignoredOperating System
Linux, Windows, macOS
Operating System Details
No response
SQLModel Version
0.0.8
Python Version
3.10.10
Additional Context
No response
Beta Was this translation helpful? Give feedback.
All reactions