Skip to content

A single-column primary_key not picked up when it's also a ForeignKey #1700

Closed Answered by zzzeek
candiduslynx asked this question in Usage Questions
Discussion options

You must be logged in to vote

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.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@candiduslynx
Comment options

@zzzeek
Comment options

@candiduslynx
Comment options

@zzzeek
Comment options

Answer selected by candiduslynx
@candiduslynx
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting info waiting for the submitter to give more information
2 participants