]> git.ipfire.org Git - thirdparty/sqlalchemy/alembic.git/commitdiff
Index didn't have a quote parameter until 0.9, when the quote param is
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 3 Jul 2015 20:10:41 +0000 (16:10 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 3 Jul 2015 20:10:41 +0000 (16:10 -0400)
portable to the name itself.  so we don't need to handle this arg
explicitly.

alembic/operations/ops.py

index 2cdf7adbf300ac4ad7b5c131ef752f267d654cad..82fdd90603c2de6fc9bafddd9106840ba0e6afd4 100644 (file)
@@ -600,13 +600,12 @@ class CreateIndexOp(MigrateOperation):
 
     def __init__(
             self, index_name, table_name, columns, schema=None,
-            unique=False, quote=None, _orig_index=None, **kw):
+            unique=False, _orig_index=None, **kw):
         self.index_name = index_name
         self.table_name = table_name
         self.columns = columns
         self.schema = schema
         self.unique = unique
-        self.quote = quote
         self.kw = kw
         self._orig_index = _orig_index
 
@@ -618,9 +617,8 @@ class CreateIndexOp(MigrateOperation):
             sqla_compat._get_index_expressions(index),
             schema=index.table.schema,
             unique=index.unique,
-            quote=index.name.quote,
             _orig_index=index,
-            **index.dialect_kwargs
+            **index.kwargs
         )
 
     def to_index(self, migration_context=None):
@@ -629,14 +627,14 @@ class CreateIndexOp(MigrateOperation):
         schema_obj = schemaobj.SchemaObjects(migration_context)
         return schema_obj.index(
             self.index_name, self.table_name, self.columns, schema=self.schema,
-            unique=self.unique, quote=self.quote, **self.kw)
+            unique=self.unique, **self.kw)
 
     @classmethod
     @util._with_legacy_names([('name', 'index_name')])
     def create_index(
             cls, operations,
             index_name, table_name, columns, schema=None,
-            unique=False, quote=None, **kw):
+            unique=False, **kw):
         """Issue a "create index" instruction using the current
         migration context.
 
@@ -689,7 +687,7 @@ class CreateIndexOp(MigrateOperation):
         """
         op = cls(
             index_name, table_name, columns, schema=schema,
-            unique=unique, quote=quote, **kw
+            unique=unique, **kw
         )
         return operations.invoke(op)