Created a foreign key relation to table wrsledruncache.
[philipp/winterrodeln/wrpylib.git] / 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,
-    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),