Skip to content

Possible regression since 1.12.0 on BIGSERIAL handling #1519

Discussion options

You must be logged in to vote

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

def my_compare_type(context, inspected_column,
            metadata_column, inspected_type, metadata_type):
    if isinstance(inspected_type, BIGINT):
        return False
    return None

context.configure(
    # ...
    compare_type = my_compare_type
)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@hugo-ricateau
Comment options

Answer selected by hugo-ricateau
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants
Converted from issue

This discussion was converted from issue #1518 on August 07, 2024 13:00.