]> git.ipfire.org Git - thirdparty/sqlalchemy/alembic.git/commit
Only allow partial revision match for > 3 characters
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 17 Sep 2019 22:25:41 +0000 (18:25 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 17 Sep 2019 23:02:21 +0000 (19:02 -0400)
commitb162e7d8fb6ecb7e65b56f33803eb70c2249a273
tree0c7b67e022553590ae28a06710217454aebece59
parentbb153bd4f881f6847fbe80df104fb63b1224d68d
Only allow partial revision match for > 3 characters

Made the command interface revision lookup behavior more strict in that an
Alembic revision number is only resolved based on a partial match rules if
it has at least four characters, to prevent simple typographical issues
from inadvertently  running migrations.

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