diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2014-11-30 19:20:38 -0500 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2014-11-30 19:20:38 -0500 |
commit | bb90d00e80975fd9930701067066167aee666637 (patch) | |
tree | 3e981f98d67298ee5a5a12ed248e852d0b1237a5 | |
parent | 8a6b2862ad402d5daa8966382ca4e03f0ab25154 (diff) | |
download | alembic-bb90d00e80975fd9930701067066167aee666637.tar.gz |
- naming convention limited to SQLA 0.9.4 or greater
-rw-r--r-- | alembic/operations.py | 2 | ||||
-rw-r--r-- | docs/build/batch.rst | 3 | ||||
-rw-r--r-- | tests/test_batch.py | 1 |
3 files changed, 5 insertions, 1 deletions
diff --git a/alembic/operations.py b/alembic/operations.py index 6a10f38..683d2bd 100644 --- a/alembic/operations.py +++ b/alembic/operations.py @@ -296,7 +296,7 @@ class Operations(object): to the :class:`~sqlalchemy.schema.MetaData` during the reflection process. This is typically required if one wants to drop SQLite constraints, as these constraints will not have names when - reflected on this backend. + reflected on this backend. Requires SQLAlchemy **0.9.4** or greater. .. seealso:: diff --git a/docs/build/batch.rst b/docs/build/batch.rst index 04a32c4..307d2a1 100644 --- a/docs/build/batch.rst +++ b/docs/build/batch.rst @@ -163,6 +163,9 @@ as described in :ref:`autogen_naming_conventions`. Usage is as follows:: batch_op.drop_constraint( "fk_bar_foo_id_foo", type_="foreignkey") +Note that the naming convention feature requires at least +**SQLAlchemy 0.9.4** for support. + .. versionadded:: 0.7.1 added :paramref:`~.Operations.batch_alter_table.naming_convention` to :meth:`.Operations.batch_alter_table`. diff --git a/tests/test_batch.py b/tests/test_batch.py index b71e003..70dad56 100644 --- a/tests/test_batch.py +++ b/tests/test_batch.py @@ -675,6 +675,7 @@ class BatchRoundTripTest(TestBase): {"id": 5, "x": 9} ]) + @config.requirements.sqlalchemy_094 @config.requirements.unnamed_constraints def test_drop_foreign_key(self): bar = Table( |