Created a foreign key relation to table wrsledruncache.
authorphilipp <philipp@7aebc617-e5e2-0310-91dc-80fb5f6d2477>
Fri, 3 May 2013 13:32:00 +0000 (13:32 +0000)
committerphilipp <philipp@7aebc617-e5e2-0310-91dc-80fb5f6d2477>
Fri, 3 May 2013 13:32:00 +0000 (13:32 +0000)
git-svn-id: http://www.winterrodeln.org/svn/wrpylib/trunk@1411 7aebc617-e5e2-0310-91dc-80fb5f6d2477

wrpylib/wrmwdb.py

index c930ec1e43655d1140d4c8353a3f99ac2decb7c9..517567b078db024b4fb9467c52a12c092a44cc07 100644 (file)
@@ -47,7 +47,7 @@ def wrsledruncache_table(metadata):
     :param metadata: metadata = sqlalchemy.MetaData()
     """
     return Table("wrsledruncache", metadata,
     :param metadata: metadata = sqlalchemy.MetaData()
     """
     return Table("wrsledruncache", metadata,
-    Column("page_id", types.Integer, primary_key=True),
+    Column("page_id", types.Integer, schema.ForeignKey('wrreportcache.page_id'), primary_key=True),
     Column("page_title", types.Unicode(255)),
     Column("position_latitude", types.Float),
     Column("position_longitude", types.Float),
     Column("page_title", types.Unicode(255)),
     Column("position_latitude", types.Float),
     Column("position_longitude", types.Float),