Skip to content

Alembic revision autogeneration creates temp tables #1470

Discussion options

You must be logged in to vote

these names:

gine] Row ('#A0F4A3CF',)
DEBUG [sqlalchemy.engine.Engine] Row ('#A3D1107A',)

are not expected to be present in ischema.tables so this would be some unknown behavior of the specific MS database you are using. the # sign indicates a temp table.

you can instruct alembic to skip these names using include_name which hopefully will omit these names from the process that looks for columns.

def include_name(name, type_, parent_names):
    if type_ == "table" and "#" in name:
        return False
    return True

context.configure(
    # ...
    include_name = include_name
)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ben-sandham
Comment options

Answer selected by ben-sandham
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants