Skip to content

Issue between Alembic migration and GUID #425

Answered by frankie567
johnsxiong asked this question in Q&A
Discussion options

You must be logged in to vote

Why did you add this:

class UserTable(Base, SQLAlchemyBaseUserTable):
    id = Column(String(40), primary_key=True, comment='UUID')  # ⬅️ this

SQLAlchemyBaseUserTable already provide the id column. I think this line breaks the user retrieval by id.

Replies: 4 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

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

@johnsxiong
Comment options

@johnsxiong
Comment options

@frankie567
Comment options

@johnsxiong
Comment options

Answer selected by frankie567
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #425 on December 23, 2020 15:49.