Fixed bug: Foreign key to old table name.
[philipp/winterrodeln/wrpylib.git] / wrpylib / wrmwdb.py
index 5a0879b3cdab9f9c6dc946751c85ba36475a9d36..c977f14e71bce066b545ad6ae265afdc669b0c4b 100644 (file)
@@ -18,7 +18,7 @@ def wrreport_table(metadata):
     """
     return Table("wrreport", metadata,
     Column("id", types.Integer, primary_key=True),
     """
     return Table("wrreport", metadata,
     Column("id", types.Integer, primary_key=True),
-    Column("page_id", types.Integer, schema.ForeignKey('wrsleddingcache.page_id')),
+    Column("page_id", types.Integer, schema.ForeignKey('wrsledruncache.page_id')),
     Column("page_title", types.Unicode(255), nullable=False),
     Column("date_report", types.Date),
     Column("date_entry", types.DateTime, nullable=False),
     Column("page_title", types.Unicode(255), nullable=False),
     Column("date_report", types.Date),
     Column("date_entry", types.DateTime, nullable=False),