The change of the wrreportcache table caused necessary changes in this module.
[philipp/winterrodeln/wrpylib.git] / wrpylib / wrmwdb.py
index c977f14e71bce066b545ad6ae265afdc669b0c4b..82bad4a4c59175dd42e64baddd56edb51c9b55ae 100644 (file)
@@ -112,3 +112,21 @@ 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("date_report", types.Date),
+    Column("condition", types.Integer),
+    Column("description", types.Unicode),
+    Column("author_name", types.Unicode(30)),
+    Column("author_username", types.Unicode(30))
+    )
+
+