]> git.ipfire.org Git - thirdparty/sqlalchemy/alembic.git/commit
Add multiple revision support to stamp, support purge
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 19 Sep 2019 03:16:56 +0000 (23:16 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 19 Sep 2019 17:57:49 +0000 (13:57 -0400)
commitfdcc5bf973fec758eaf67cf8e8ad48985caffb65
tree5c14bcff43139d96683b638a473899d2b7c9bf01
parent3398e6b5a5175009c9d7047df0c1bbf9891c6610
Add multiple revision support to stamp, support purge

Added new ``--purge`` flag to the ``alembic stamp`` command, which will
unconditionally erase the version table before stamping anything.  This is
useful for development where non-existent version identifiers might be left
within the table.  Additionally, ``alembic.stamp`` now supports a list of
revision identifiers, which are intended to allow setting up muliple heads
at once.  Overall handling of version identifiers within the
``alembic.stamp`` command has been improved with many new tests and
use cases added.

Fixes: #473
Change-Id: If06501b69afae9956df3d0bcd739063fb8042a02
alembic/command.py
alembic/config.py
alembic/runtime/migration.py
alembic/script/base.py
alembic/testing/env.py
alembic/testing/fixtures.py
alembic/util/__init__.py
docs/build/unreleased/473.rst [new file with mode: 0644]
tests/test_command.py