]> git.ipfire.org Git - thirdparty/sqlalchemy/alembic.git/commit
Raise for non-string revision identifier
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 24 Apr 2019 18:46:03 +0000 (13:46 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sat, 27 Apr 2019 00:30:33 +0000 (20:30 -0400)
commit3c93a7ea8ac63fbad94f35950c497a1353616e5f
tree9a81e57d432585cc9e9c9d3e97aaabc395461061
parent90330cc0f5f4baa9aaaa5d82229dedbef6d7cbf7
Raise for non-string revision identifier

Added an assertion in :meth:`.RevisionMap.get_revisions` and other methods
which ensures revision numbers are passed as strings or collections of
strings.   Driver issues particularly on MySQL may inadvertently be passing
bytes here which leads to failures later on.

Change-Id: Id80c958f0a082fed26cac2cf838cb7507b8d814c
Fixes: #551
alembic/script/revision.py
alembic/testing/requirements.py
docs/build/unreleased/551.rst [new file with mode: 0644]
tests/test_revision.py