Skip to content

Stacktrace when unpacking too many alters in schema history #89

@dtrupenn

Description

@dtrupenn

I've ran into a ValueError issue when attempting to run schema up on a database with too many alters applied. The for loop iterator attempting to check each alter_id errors out when the dict object is too large to iterate. The proposal here is to update these for loops on these dicts to utilize iteritems() (items() for python3) to get around the ValueError.

StackTrace:

Traceback (most recent call last):
  File "/usr/bin/schema", line 95, in main
    globals()[handler](context).run()
  File "/usr/local/adnxs/schema-tool/schematool/command/up.py", line 67, in run
    for (_, alter_id, _) in history:
ValueError: too many values to unpack

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions