The lon and lat center values of <wrmap> are now produced with 6 digits after the...
[philipp/winterrodeln/wrpylib.git] / wrpylib / wrmwdb.py
index c930ec1e43655d1140d4c8353a3f99ac2decb7c9..8d5bae50a6f968e90ba2ec37f5f83c6e269e5f25 100644 (file)
@@ -37,6 +37,7 @@ def wrreport_table(metadata):
     Column("delete_person_userid", types.Integer),
     Column("delete_person_username", types.Unicode(30)),
     Column("delete_reason_public", types.Unicode),
+    Column("delete_invisible", types.Boolean),
     )
 
 
@@ -47,7 +48,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),
@@ -124,7 +125,7 @@ def wrreportcache_table(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_id", types.Integer, schema.ForeignKey('wrreport.id')),
     Column("date_report", types.Date),
     Column("condition", types.Integer),
     Column("description", types.Unicode),