From: Mike Bayer Date: Tue, 12 Feb 2008 16:45:39 +0000 (+0000) Subject: add pk cols to assocaition table X-Git-Tag: rel_0_4_3~13 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=85e8cb7ffb9134fa34135bf83d231e0e55b0d0cf;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git add pk cols to assocaition table --- diff --git a/doc/build/content/mappers.txt b/doc/build/content/mappers.txt index 4915457f0d..41cae69666 100644 --- a/doc/build/content/mappers.txt +++ b/doc/build/content/mappers.txt @@ -813,8 +813,8 @@ The association object pattern is a variant on many-to-many: it specifically is Column('id', Integer, primary_key=True)) association_table = Table('association', metadata, - Column('left_id', Integer, ForeignKey('left.id')), - Column('right_id', Integer, ForeignKey('right.id')), + Column('left_id', Integer, ForeignKey('left.id'), primary_key=True), + Column('right_id', Integer, ForeignKey('right.id'), primary_key=True), Column('data', String(50)) )