Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add indicate-current option into history command #192

Merged
merged 2 commits into from
Sep 18, 2018

Conversation

misebox
Copy link
Contributor

@misebox misebox commented Mar 28, 2018

This PR is aimed to add -i/--indicate-current option into history command.
This option indicates current version in a result of history command.
The requirement is Alembic version 0.9.9 or greater.

  • with --help
$ FLASK_APP=app.py flask db history --help
Usage: flask db history [OPTIONS]

  List changeset scripts in chronological order.

Options:
  -d, --directory TEXT    migration script directory (default is "migrations")
  -r, --rev-range TEXT    Specify a revision range; format is [start]:[end]
  -v, --verbose           Use more verbose output
  -i, --indicate-current  Indicate current version (Alembic 0.9.9 or greater
                          is required)
  --help                  Show this message and exit.
  • with --indicate-current
$ FLASK_APP=app.py flask db history -i
bc9874116395 -> 6dd1d5ec3dde (head), empty message
387f936c6387 -> bc9874116395 (current), empty message
<base> -> 387f936c6387, empty message

(current) is the sign for current version.

Please review or comment if you could.
And feel free for editing my code.
Thank you for reading.

@miguelgrinberg miguelgrinberg merged commit 1fa1936 into miguelgrinberg:master Sep 18, 2018
@miguelgrinberg
Copy link
Owner

Thanks!

@misebox misebox deleted the indicate-current branch September 29, 2018 02:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants