]> git.ipfire.org Git - thirdparty/sqlalchemy/alembic.git/commit
Ensure "alembic current" won't unnecessarily mutate the database
authorNikolay Edigaryev <edigaryev@gmail.com>
Fri, 15 May 2020 21:18:47 +0000 (17:18 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 15 May 2020 21:25:31 +0000 (17:25 -0400)
commite7453f14bc972f1206144f1155ea3dc52469ea95
treeee1e1712e11d7af95adec687abbbb448f2fd1b50
parentcbde7ee5e1556683a84c888137933b64d81508f4
Ensure "alembic current" won't unnecessarily mutate the database

The ``alembic current`` command no longer creates an ``alembic_version``
table in the database if one does not exist already, returning no version
as the current version. This allows checking for migrations in parallel
without introducing race conditions.  Pull request courtesy Nikolay
Edigaryev.

Fixes: #694
Closes: #695
Pull-request: https://github.com/sqlalchemy/alembic/pull/695
Pull-request-sha: fd3e3b8faf7a41dd4c35daca6c7d224e983ab496

Change-Id: I500ab9ec1fe74b5e20e6aecfe598bce7e9cdef96
alembic/command.py
alembic/operations/base.py
alembic/runtime/migration.py
docs/build/unreleased/694.rst [new file with mode: 0644]
tests/test_command.py