[Dbix-class] ON DELETE statement in Pg not avaiable in schema::loader?

Matt S Trout dbix-class at trout.me.uk
Fri Mar 21 16:43:51 GMT 2008


On Sat, Mar 08, 2008 at 06:11:22PM +0100, Moritz Onken wrote:
> Wouldn't it be great (tm) if we could add an "on_delete" and  
> "on_update" config
> to all the relationships? Like the "cascade_delete" config option.
> 
> If the DMBS supports that type of actions DBIC does not have to take  
> care of it,
> otherwise it does.

Seems reasonable, but how well can we abstract it to be non-db-specific?

If we can't, I think just using sqlt_deploy_hook is the answer.

-- 
      Matt S Trout       Need help with your Catalyst or DBIx::Class project?
   Technical Director                    http://www.shadowcat.co.uk/catalyst/
 Shadowcat Systems Ltd.  Want a managed development or deployment platform?
http://chainsawblues.vox.com/            http://www.shadowcat.co.uk/servers/



More information about the DBIx-Class mailing list