[sqlalchemy] Duplicate constraint name

2015-01-30 Thread Werner
I am getting the following exception on dbCurrent.metadata.create_all(engCurrent) for the Currency class. It is due to the Constraint for 'home' and 'used' columns having the same name. Is this due to the BOOLEAN type and what is the correct way of uniquely naming the Constraint? Is this

Re: [sqlalchemy] Duplicate constraint name

2015-01-30 Thread Michael Bayer
Werner werner...@gmx.ch wrote: I am getting the following exception on dbCurrent.metadata.create_all(engCurrent) for the Currency class. It is due to the Constraint for 'home' and 'used' columns having the same name. Is this due to the BOOLEAN type and what is the correct way of

Re: [sqlalchemy] Duplicate constraint name

2015-01-30 Thread Werner
Hi Michael, Yes, I am using the old naming recipe, adjusted it to check for _unnamed_ as a temp fix until I can move to the new way of doing it. Thanks for the fast answer Werner On 1/30/2015 18:27, Michael Bayer wrote: Werner werner...@gmx.ch wrote: I am getting the following exception