]> git.ipfire.org Git - thirdparty/sqlalchemy/alembic.git/commitdiff
Added missing 'execution_options' kwarg that only appeared to be used from the multid...
authorBryce Lohr <bryce.lohr@gmail.com>
Thu, 26 Apr 2012 02:30:32 +0000 (22:30 -0400)
committerBryce Lohr <bryce.lohr@gmail.com>
Thu, 26 Apr 2012 02:30:32 +0000 (22:30 -0400)
alembic/migration.py

index 80e53b2564c2e42153c0c52e3b7e3a35f6ea3a23..243bdbd2217d3cd0a2b0f8ca74434888957a3dec 100644 (file)
@@ -220,7 +220,7 @@ class MigrationContext(object):
             if self.as_sql and not rev:
                 _version.drop(self.connection)
 
-    def execute(self, sql):
+    def execute(self, sql, execution_options=None):
         """Execute a SQL construct or string statement.
         
         The underlying execution mechanics are used, that is
@@ -229,7 +229,7 @@ class MigrationContext(object):
         the current SQLAlchemy connection.
 
         """
-        self.impl._exec(sql)
+        self.impl._exec(sql, execution_options)
 
     def _stdout_connection(self, connection):
         def dump(construct, *multiparams, **params):