From 2af6e438c9558eeddbfe0d27d5690660f3b798cf Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Fri, 27 Mar 2015 15:15:55 -0400 Subject: - 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 --- alembic/batch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'alembic') 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): -- cgit v1.2.1