Re: Multi-column foreign key constrait using postgresql, autogenerated migration fails

2015-10-30 Thread Gastón J . Avila
That clears it all up. I used __table_args__ and ForeignKeyConstrait. Alembic handled it perfectly. Thanks Mike for your help and for creating these libraries. On Thu, Oct 29, 2015 at 8:34 PM, Mike Bayer wrote: > > > On 10/29/15 4:26 PM, Gastón Avila wrote: > > Hi

Multi-column foreign key constrait using postgresql, autogenerated migration fails

2015-10-29 Thread Gastón Avila
Hi all, I used alembic to generate (auto) a migration which added a table to my postgresql DB which had a foreign key constraint matching two columns in the new table to two columns in an existing one. The two columns in the existing table where a joint primary key (hence unique). The

Re: Multi-column foreign key constrait using postgresql, autogenerated migration fails

2015-10-29 Thread Mike Bayer
On 10/29/15 4:26 PM, Gastón Avila wrote: > Hi all, > > I used alembic to generate (auto) a migration which added a table to my > postgresql DB which had a foreign key constraint matching two columns in > the new table to two columns in an existing one. The two columns in the > existing table