]> git.ipfire.org Git - thirdparty/sqlalchemy/alembic.git/commit
Add indicate-current option into history command
authormisebox <misebox@gmail.com>
Wed, 7 Mar 2018 21:20:00 +0000 (16:20 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 7 Mar 2018 22:09:12 +0000 (17:09 -0500)
commit22294fff73c017529d0c12bb212f789e600d9965
treeff65311337673f9651161fffe3bbfa2d7b8a2cd4
parent132ec8cf696ef9588599ae23d45ea349542197ce
Add indicate-current option into history command

Added new flag ``--indicate-current`` to the ``alembic history`` command.
When listing versions, it will include the token "(current)" to indicate
the given version is a current head in the target database.  Pull request
courtesy Kazutaka Mise.

Fixes: #481
Change-Id: I7daa02b455aaba76c50d0e1febbdc6908693d4c9
Pull-request: https://bitbucket.org/zzzeek/alembic/pull-requests/77
alembic/command.py
alembic/config.py
alembic/script/base.py
docs/build/unreleased/481.rst [new file with mode: 0644]
tests/test_command.py