[sqlalchemy] PostgreSQL, cascading and non-nullable ForeignKeys

2010-09-15 Thread BenH
Hi, I'm using SqlAlchemy 0.6.3 and PostgreSQL 8.4 and I'm trying to setup a cascading delete between several levels of tables. The problem seems to be that I can't have a relationship with cascade=all and a column with ForeignKey that has nullable=False. Here is my example: from sqlalchemy

Re: [sqlalchemy] PostgreSQL, cascading and non-nullable ForeignKeys

2010-09-15 Thread Conor
On 09/15/2010 05:04 PM, BenH wrote: Hi, I'm using SqlAlchemy 0.6.3 and PostgreSQL 8.4 and I'm trying to setup a cascading delete between several levels of tables. The problem seems to be that I can't have a relationship with cascade=all and a column with ForeignKey that has nullable=False.