summaryrefslogtreecommitdiff
path: root/alembic
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2015-03-27 15:15:55 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2015-03-27 15:15:55 -0400
commit2af6e438c9558eeddbfe0d27d5690660f3b798cf (patch)
tree4c22fa6db2320b2985f0477dff3fb0b648198231 /alembic
parentc3e39ec4bff3345dcc1daa1d678989b6fd690a3d (diff)
downloadalembic-2af6e438c9558eeddbfe0d27d5690660f3b798cf.tar.gz
- Repaired support for the :meth:`.BatchOperations.create_index`
directive, which was mis-named internally such that the operation within a batch context could not proceed. fixes #287
Diffstat (limited to 'alembic')
-rw-r--r--alembic/batch.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/alembic/batch.py b/alembic/batch.py
index e97f74e..6e5dc75 100644
--- a/alembic/batch.py
+++ b/alembic/batch.py
@@ -271,7 +271,7 @@ class ApplyBatchImpl(object):
except KeyError:
raise ValueError("No such constraint: '%s'" % const.name)
- def add_index(self, idx):
+ def create_index(self, idx):
self.indexes[idx.name] = idx
def drop_index(self, idx):