From: Mike Bayer Date: Sat, 23 Sep 2006 23:06:54 +0000 (+0000) Subject: onupdate/ondelete fix X-Git-Tag: rel_0_3_0~129 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7354979c3d4894ca59d054ebf66fab15749c377f;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git onupdate/ondelete fix --- diff --git a/doc/build/content/metadata.txt b/doc/build/content/metadata.txt index d1294b9f1b..bf5d78dce0 100644 --- a/doc/build/content/metadata.txt +++ b/doc/build/content/metadata.txt @@ -226,13 +226,13 @@ Within the `MetaData` collection, this table will be identified by the combinati #### ON UPDATE and ON DELETE {@name=onupdate} -`ON UPDATE` and `ON DELETE` clauses to a table create are specified within the `ForeignKeyConstraint` object, using the `on_update` and `on_delete` keyword arguments: +`ON UPDATE` and `ON DELETE` clauses to a table create are specified within the `ForeignKeyConstraint` object, using the `onupdate` and `ondelete` keyword arguments: {python} foobar = Table('foobar', meta, Column('id', Integer, primary_key=True), Column('lala', String(40)), - ForeignKeyConstraint(['lala'],['hoho.lala'], on_update="CASCADE", on_delete="CASCADE")) + ForeignKeyConstraint(['lala'],['hoho.lala'], onupdate="CASCADE", ondelete="CASCADE")) #### Enabling Table / Column Quoting {@name=quoting}