]> git.ipfire.org Git - thirdparty/sqlalchemy/alembic.git/commit
- move resolution of "starting rev" for --sql mode into
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 3 Feb 2015 16:40:40 +0000 (11:40 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 3 Feb 2015 16:51:13 +0000 (11:51 -0500)
commit0955d44f4b93ff520d07253373bb6cb9b25220b5
treea7ebbca6ade9d19963e2c18ac00d7e9676454101
parent267063c1b804b34174ab1fc388ccc616655631fd
- move resolution of "starting rev" for --sql mode into
get_current_heads() directly; therefore we don't need to
do this in alembic.command, which we were doing for stamp but
not downgrade/upgrade.  The slight change here is that the
context.get_starting_revision_argument() method will
return an abbreviated starting rev as abbreviated in
all cases, including the stamp command, where we previously
were converting a stamp argument first, but not for the
upgrade or downgrade commands.
- Fixed bug where using a partial revision identifier as the
"starting revision" in ``--sql`` mode in a downgrade operation
would fail to resolve properly.  fixes #269
alembic/command.py
alembic/migration.py
docs/build/changelog.rst
tests/test_offline_environment.py