diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2008-02-12 16:45:39 +0000 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2008-02-12 16:45:39 +0000 |
| commit | 85e8cb7ffb9134fa34135bf83d231e0e55b0d0cf (patch) | |
| tree | 8c78d5e0061fc20b73139773f4a61cbd30d5c0e4 | |
| parent | adc929c0f1086415f291edbf0b86dc10499f2693 (diff) | |
| download | sqlalchemy-85e8cb7ffb9134fa34135bf83d231e0e55b0d0cf.tar.gz | |
add pk cols to assocaition table
| -rw-r--r-- | doc/build/content/mappers.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/build/content/mappers.txt b/doc/build/content/mappers.txt index 4915457f0..41cae6966 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)) ) |
