summaryrefslogtreecommitdiff
path: root/test/tables.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2005-09-15 04:10:33 +0000
committerMike Bayer <mike_mp@zzzcomputing.com>2005-09-15 04:10:33 +0000
commita6360fdcf5e97db64059dc06b48052301f6a90cc (patch)
treeee5ed3bd8ac2015d3d35005b124e25a81c13924d /test/tables.py
parent183b993df1908d3dac3c28ab9516abd4777fa2a7 (diff)
downloadsqlalchemy-a6360fdcf5e97db64059dc06b48052301f6a90cc.tar.gz
foreign key relatinoships are defined primarily at the schema level
Diffstat (limited to 'test/tables.py')
-rw-r--r--test/tables.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/tables.py b/test/tables.py
index 10b09919a..c0cdc4397 100644
--- a/test/tables.py
+++ b/test/tables.py
@@ -47,8 +47,8 @@ keywords = Table('keywords', db,
)
itemkeywords = Table('itemkeywords', db,
- Column('item_id', INT),
- Column('keyword_id', INT)
+ Column('item_id', INT, foreign_key = ForeignKey(orderitems.c.item_id)),
+ Column('keyword_id', INT, foreign_key = ForeignKey(keywords.c.keyword_id))
)
users.build()