You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is something error on creating tables on MySQL. sqlalchemy.exc.CompileError: (in table 'user', column 'email'): VARCHAR requires a length on dialect mysql
effected columns
SQLAlchemyBaseUserTable:
email
hashed_password
Hello
Problem
There is something error on creating tables on MySQL.
sqlalchemy.exc.CompileError: (in table 'user', column 'email'): VARCHAR requires a length on dialect mysql
effected columns
SQLAlchemyBaseUserTable:
email
hashed_password
SQLAlchemyBaseOAuthAccountTable:
oauth_name
access_token
refresh_token
account_id
account_email
https://github.com/frankie567/fastapi-users/blob/0134a43fade100c32588a0bf09d21b1939d24c8e/fastapi_users/db/sqlalchemy.py#L56
According to SQLAlchemy Docs,
CREATE TABLE DDL is issued if a VARCHAR with no length is included.
Solution
Pull request #344
The text was updated successfully, but these errors were encountered: