A single-column primary_key
not picked up when it's also a ForeignKey
#1700
-
Right as the title suggests:
this won't pick the PK for B |
Beta Was this translation helpful? Give feedback.
Answered by
zzzeek
Jul 19, 2025
Replies: 1 comment 5 replies
-
hi - what do you mean by "picked up"? in the mapping? CREATE TABLE? Where / when? |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
OK but note if you add primary_key=True after the CREATE TABLE already ran, autogenerate does not pick that part up, regardless of FK, you have to add an
op.create_primary_key()
manually.