]> git.ipfire.org Git - thirdparty/sqlalchemy/alembic.git/commit
add check command for upgrade diffs
authorNathan Louie <nxlouie@umich.edu>
Tue, 13 Dec 2022 17:58:09 +0000 (12:58 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 15 Dec 2022 16:44:48 +0000 (11:44 -0500)
commit4678d7f1da009689449a6550768139c32b50c646
tree910b93354c60c1424fb00306f58474c4fcbc1674
parent3a5a7f33320d88363be18776a2076a19e600a593
add check command for upgrade diffs

Added new Alembic command ``alembic check``. This performs the widely
requested feature of running an "autogenerate" comparison between the
current database and the :class:`.MetaData` that's currently set up for
autogenerate, returning an error code if the two do not match, based on
current autogenerate settings. Pull request courtesy Nathan Louie.

As this is a new feature we will call this 1.9.0

Fixes: #724
Closes: #1101
Pull-request: https://github.com/sqlalchemy/alembic/pull/1101
Pull-request-sha: 807ed545df70e7a10b913e2951a1b636f138a4ff

Change-Id: I03b146eaf762be464a0ff0858ff5730cc9366c84
alembic/__init__.py
alembic/command.py
alembic/util/__init__.py
alembic/util/exc.py
docs/build/autogenerate.rst
docs/build/changelog.rst
docs/build/unreleased/724.rst [new file with mode: 0644]
tests/test_command.py