Unexpected LONGTEXT type #1584
Answered
by
zzzeek
wu-clan
asked this question in
Usage Questions
-
Describe the bug Expected behavior To Reproduce class Api(Base):
"""Sys api"""
__tablename__ = 'sys_api'
id: Mapped[int] = mapped_column(primary_key=True, index=True, autoincrement=True)
remark: Mapped[str | None] = mapped_column(LONGTEXT().with_variant(TEXT, 'postgresql')) Error # In versions py
sa.Column('remark', mysql.LONGTEXT(), nullable=True)
Versions.
Additional context postgresql+asyncpg://postgres:123456@127.0.0.1:5432/fba Have a nice day! |
Beta Was this translation helpful? Give feedback.
Answered by
zzzeek
Dec 24, 2024
Replies: 1 comment
-
alembic seems to be skipping the reverse variant at the moment. please set up the variant with generic type first as this is what alembic expects right now:
this will be fixed by #1585 will be in alembic 1.14.1 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
wu-clan
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
alembic seems to be skipping the reverse variant at the moment. please set up the variant with generic type first as this is what alembic expects right now:
this will be fixed by #1585 will be in alembic 1.14.1