Updated schema for MediaWiki 1.27.
authorphilipp <philipp@7aebc617-e5e2-0310-91dc-80fb5f6d2477>
Thu, 20 Oct 2016 20:26:56 +0000 (20:26 +0000)
committerphilipp <philipp@7aebc617-e5e2-0310-91dc-80fb5f6d2477>
Thu, 20 Oct 2016 20:26:56 +0000 (20:26 +0000)
git-svn-id: http://www.winterrodeln.org/svn/wrpylib/trunk@2511 7aebc617-e5e2-0310-91dc-80fb5f6d2477

wrpylib/mwdb.py

index 01f38451c5a28b1cf1e1b600314b3a1e4ff60728..84093e486ac1c0bb0f3fa90470972d4e1153adb0 100644 (file)
@@ -17,13 +17,15 @@ def page_table(metadata):
     Column("page_namespace", types.Integer, nullable=False),
     Column("page_title", types.Unicode(255), nullable=False), # varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL
     Column("page_restrictions", types.String, nullable=False), # tinyblob NOT NULL
-    Column("page_counter", types.Integer, nullable=False),
     Column("page_is_redirect", types.Integer, nullable=False),
     Column("page_is_new", types.Integer, nullable=False),
     Column("page_random", types.Float, nullable=False),
     Column("page_touched", types.String(14, convert_unicode='force'), nullable=False), # binary(14) NOT NULL
     Column("page_latest", types.Integer, nullable=False),
     Column("page_len", types.Integer, nullable=False),
+    Column("page_content_model", types.String(32, convert_unicode='force')),
+    Column("page_links_updated", types.String(14, convert_unicode='force')),
+    Column("page_lang", types.String(35, convert_unicode='force')),
     )