Add text to the title if the text is given below the coordinates.
[philipp/winterrodeln/wrpylib.git] / wrpylib / wrmwdb.py
index 5a0879b3cdab9f9c6dc946751c85ba36475a9d36..761a8db3c500ea76f08c2ccd42278a672818ccd8 100644 (file)
@@ -18,7 +18,7 @@ def wrreport_table(metadata):
     """
     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),
@@ -112,3 +112,22 @@ def wrinncache_table(metadata):
     )
 
 
+def wrreportcache_table(metadata):
+    """Returns the sqlalchemy Table representing the "wrreportcache" Winterrodeln table in MediaWiki.
+    Current table definition.
+    * version 1.5 (introduction)
+    :param metadata: metadata = sqlalchemy.MetaData()
+    """
+    return Table("wrreportcache", metadata,
+    Column("page_id", types.Integer, primary_key=True),
+    Column("page_title", types.Unicode(255), nullable=False),
+    Column("report_id", types.Integer),
+    Column("report_date_report", types.Date),
+    Column("report_condition", types.Integer),
+    Column("report_description", types.Unicode),
+    Column("report_author_name", types.Unicode(30)),
+    Column("report_author_username", types.Unicode(30)),
+    Column("reports_xml", types.Unicode),
+    )
+
+