]> git.ipfire.org Git - thirdparty/sqlalchemy/alembic.git/commit
prettier revision identifier (always exatly 12 hex digits long) with better guarantee...
authorantti_haapala <antti@haapala.name>
Sun, 29 Nov 2015 16:27:57 +0000 (16:27 +0000)
committerantti_haapala <antti@haapala.name>
Sun, 29 Nov 2015 16:27:57 +0000 (16:27 +0000)
commit2dcd72e840d8055ffa8efcf586f7e1cc7c475907
treeb2a0e2d02970763071eaa9493e0e17aaf3c56cee
parente5e43c65916670abd9f90b57df5598a308d37d45
prettier revision identifier (always exatly 12 hex digits long) with better guaranteed entropy (the last 48 bits of a uuid4 are all random). Works everywhere where uuid module exists (2.5 -)

Rationale: with the current code most revision ids start with 1, 2, 3 or 4, and there are far more collisions with 2 initial digits than necessary (cumbersome to check a file by revision on command line and such). So instead of revision ids that are 1-12 digits long with ~45 bits of information, lets just have them 12 digits long and contain full 48 bits of info.
alembic/util/langhelpers.py