Possible regression since 1.12.0 on BIGSERIAL handling
#1519
-
|
Describe the bug Expected behavior To Reproduce class BIGSERIAL(BigInteger):
pass
@compiles(BIGSERIAL, postgresql.dialect.name)
def _serial(element, compiler, **kw):
return 'BIGSERIAL'
class Table(Base):
column = Column(BIGSERIAL, index=True, nullable=False, comment='Not a primary key')
...were originally created as and since So I assume it is an issue when detecting the existing type? Versions
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
so BIGSERIAL is a pseudo-type in PostgreSQL which will come back in reflection as BIGINT. This is a custom type you're adding, so to have alembic ignore this you would need to write a custom rule to compare types |
Beta Was this translation helpful? Give feedback.
so BIGSERIAL is a pseudo-type in PostgreSQL which will come back in reflection as BIGINT. This is a custom type you're adding, so to have alembic ignore this you would need to write a custom rule to compare types