]> git.ipfire.org Git - thirdparty/sqlalchemy/alembic.git/commit
add get_heads()->consider_depends_on main
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 24 Apr 2026 15:15:18 +0000 (11:15 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 24 Apr 2026 15:16:23 +0000 (11:16 -0400)
commit4d1e38cac1080d7ed7c3c952814e3e3bbcf9dd13
treecce358b40accf9cfaa214b30c1952166d137910c
parent7b9d377b4b9acbe8cd78d48c5bd3f0f16d40331e
add get_heads()->consider_depends_on

    Added :paramref:`.ScriptDirectory.get_heads.consider_depends_on`
    parameter to :meth:`.ScriptDirectory.get_heads`. When set to ``True``,
    head revisions that are also a dependency of another revision via
    ``depends_on`` are excluded from the result, matching the effective
    heads that would be present in the ``alembic_version`` table after
    running all upgrades.

Fixes: #1806
Change-Id: I477725580e5ca525c6c1097f95ba0cf705a0244d
alembic/script/base.py
docs/build/unreleased/1806.rst [new file with mode: 0644]
tests/test_script_consumption.py