Re: [sqlalchemy] before_create receives a list of tuples in the `tables` kwarg since 1.0

2015-04-27 Thread Mike Bayer
On 4/27/15 2:43 PM, Mike Bayer wrote: On 4/27/15 2:09 PM, Adrian wrote: I just tried updating from 0.9.9 to 1.0.2 and noticed that this code is now broken ("tuple object has no attribute schema"): def _before_create(target, connection, **kw): schemas = {table.schema for table in kw['ta

Re: [sqlalchemy] before_create receives a list of tuples in the `tables` kwarg since 1.0

2015-04-27 Thread Mike Bayer
On 4/27/15 2:09 PM, Adrian wrote: I just tried updating from 0.9.9 to 1.0.2 and noticed that this code is now broken ("tuple object has no attribute schema"): def _before_create(target, connection, **kw): schemas = {table.schema for table in kw['tables']} for schema in schemas: Create

[sqlalchemy] before_create receives a list of tuples in the `tables` kwarg since 1.0

2015-04-27 Thread Adrian
I just tried updating from 0.9.9 to 1.0.2 and noticed that this code is now broken ("tuple object has no attribute schema"): def _before_create(target, connection, **kw): schemas = {table.schema for table in kw['tables']} for schema in schemas: CreateSchema(schema).execute_if(cal