Commits

Mike Bayer  committed 31ea17a

- [bug] drop_index() ensures a dummy column
is added when it calls "Index", as SQLAlchemy
0.7.6 will warn on index with no column names.

  • Participants
  • Parent commits 5479f4a

Comments (0)

Files changed (2)

   get the Engine from now.  courtesy 
   Marcin Kuzminski [#30]
 
+- [bug] drop_index() ensures a dummy column
+  is added when it calls "Index", as SQLAlchemy
+  0.7.6 will warn on index with no column names.
+
 0.2.1
 =====
 - [bug] Fixed the generation of CHECK constraint,

File alembic/operations.py

             drop_index("accounts")
 
         """
-        self.impl.drop_index(self._index(name, 'foo', []))
+        # need a dummy column name here since SQLAlchemy
+        # 0.7.6 and further raises on Index with no columns
+        self.impl.drop_index(self._index(name, 'foo', ['x']))
 
     def drop_constraint(self, name, tablename):
         """Drop a constraint of the given name"""