alembic won't run imgration fastapi_users_db_sqlalchemy is not defined #1373
Unanswered
SnoozeFreddo
asked this question in
Q&A
Replies: 2 comments
-
I've been adding this import myself. Alembic is generating these migrations not fastapi-users, so not sure if anything can be done from the perspective of fastapi-users. |
Beta Was this translation helpful? Give feedback.
0 replies
-
This is not a bug in If you use Field as defined by the Add the required import. alembic/script.py.mako
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
/alembic/versions/7a47ff544945_initial_migration.py", line 47, in upgrade
sa.Column('id', fastapi_users_db_sqlalchemy.generics.GUID(), nullable=False),
^^^^^^^^^^^^^^^^^^^^^^^^^^^
NameError: name 'fastapi_users_db_sqlalchemy' is not defined
The migration file appears to be missing an import statement. Should I add it manually, or have I made an error elsewhere?
That's my User model:
Beta Was this translation helpful? Give feedback.
All reactions