From: Malte Marquarding Date: Fri, 28 Nov 2014 01:26:21 +0000 (+1100) Subject: Fix source_schema argument in BatchOperation.create_foreign_key X-Git-Tag: rel_0_7_1~13^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2ba2c52a7972877ad5e30aa8a0d730d1c968f6fb;p=thirdparty%2Fsqlalchemy%2Falembic.git Fix source_schema argument in BatchOperation.create_foreign_key --- diff --git a/alembic/operations.py b/alembic/operations.py index fc52e03e..8e6c828c 100644 --- a/alembic/operations.py +++ b/alembic/operations.py @@ -1333,7 +1333,7 @@ class BatchOperations(Operations): """ return super(BatchOperations, self).create_foreign_key( name, self.impl.table_name, referent, local_cols, remote_cols, - schema=self.impl.schema) + source_schema=self.impl.schema, **kw) def create_unique_constraint(self, name, local_cols, **kw): """Issue a "create unique constraint" instruction using the