diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2014-11-23 15:23:52 -0500 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2014-11-23 15:23:52 -0500 |
commit | 2639f8f5f85294a84414a5adeb8bcce601e8977a (patch) | |
tree | e1a37dbede088ce44759d7adf37abb4e9280d6c9 /docs/build/branches.rst | |
parent | 6b0b54b35bb4039a59d3ac53c58b998800072726 (diff) | |
download | alembic-2639f8f5f85294a84414a5adeb8bcce601e8977a.tar.gz |
- Relative revision identifiers as used with ``alembic upgrade``,
``alembic downgrade`` and ``alembic history`` can be combined with
specific revisions as well, e.g. ``alembic upgrade ae10+3``, to produce
a migration target relative to the given exact version.
Diffstat (limited to 'docs/build/branches.rst')
-rw-r--r-- | docs/build/branches.rst | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/build/branches.rst b/docs/build/branches.rst index 796cfb9..d0e3a6f 100644 --- a/docs/build/branches.rst +++ b/docs/build/branches.rst @@ -498,6 +498,11 @@ This kind of thing works from history as well:: $ alembic history -r current:shoppingcart@+2 +The newer ``relnum+delta`` format can be combined as well, for example +if we wanted to list along ``shoppingcart`` up until two revisions +before the head:: + + $ alembic history -r :shoppingcart@head-2 .. _multiple_bases: |