Skip to content

Alembic tries to drop index when using TimescaleDB hypertable #1465

Answered by kimdre
kimdre asked this question in Usage Questions
Discussion options

You must be logged in to vote

Would this be the correct approach?

def exclude_by_name(name, type_, parent_names):
    exclude_indexes = ["events_timestamp_idx"]
    if type_ == "index":
        return name not in exclude_indexes
    else:
        return True

context.configure(
    # ...
    include_name=exclude_by_name,

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@kimdre
Comment options

Answer selected by kimdre
@CaselIT
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants