Re: [sqlalchemy] Naming convention for primary key and Flask, Sqlalchemy

2016-01-26 Thread Gastón J . Avila
I had to use __tablename__ = 'some_name' __table_args__ = (PrimaryKeyConstraint('id'), ) in my declarative models to get the same result. Thanks Mike, that clears it all up. On Mon, Jan 25, 2016 at 6:12 PM, Mike Bayer wrote: > > > On 01/25/2016 02:51 PM, Gastón

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