summaryrefslogtreecommitdiff
path: root/alembic/operations/base.py
diff options
context:
space:
mode:
authorNikolay Edigaryev <edigaryev@gmail.com>2020-05-15 17:18:47 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2020-05-15 17:25:31 -0400
commite7453f14bc972f1206144f1155ea3dc52469ea95 (patch)
treeee1e1712e11d7af95adec687abbbb448f2fd1b50 /alembic/operations/base.py
parentcbde7ee5e1556683a84c888137933b64d81508f4 (diff)
downloadalembic-e7453f14bc972f1206144f1155ea3dc52469ea95.tar.gz
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
Diffstat (limited to 'alembic/operations/base.py')
-rw-r--r--alembic/operations/base.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/alembic/operations/base.py b/alembic/operations/base.py
index 30bd87f..86b50ca 100644
--- a/alembic/operations/base.py
+++ b/alembic/operations/base.py
@@ -127,7 +127,6 @@ class Operations(util.ModuleClsProxy):
"args": args,
"apply_kw": apply_kw,
"doc": fn.__doc__,
- "meth": fn.__name__,
}
)
globals_ = {"op_cls": op_cls}