Physikerwelt has submitted this change and it was merged.

Change subject: Bugfix in mathpagestat table
......................................................................


Bugfix in mathpagestat table

Change-Id: I4c12e7eb796dae7db59d3e320839afbec10a8460
---
M MathObject.php
M db/mathpagestat.sql
2 files changed, 3 insertions(+), 4 deletions(-)

Approvals:
  Physikerwelt: Verified; Looks good to me, approved



diff --git a/MathObject.php b/MathObject.php
index eb053c9..21f80b8 100644
--- a/MathObject.php
+++ b/MathObject.php
@@ -99,7 +99,6 @@
                } catch ( Exception $e ) {
                        return "Databaseproblem";
                }
-               var_dump($res);
                if ( $res ) {
                foreach ( $res as $row ) {
                        $wgOut->addWikiText( '*' . 
$row->mathobservation_featuretype . ' <code>' .
diff --git a/db/mathpagestat.sql b/db/mathpagestat.sql
index c1cfa7f..a4ab835 100644
--- a/db/mathpagestat.sql
+++ b/db/mathpagestat.sql
@@ -3,9 +3,9 @@
 --
 CREATE TABLE /*_*/mathpagestat (
   pagestat_pageid int(10) NOT NULL,
-  pagestat_featurename varchar(10) NOT NULL,
-  pagestat_featuretype varchar(10) NOT NULL,
+  pagestat_featureid int(6) NOT NULL,
   pagestat_featurecount int(11) NOT NULL,
-  PRIMARY KEY (pagestat_pageid,pagestat_featurename,pagestat_featuretype)
+  PRIMARY KEY (pagestat_pageid,pagestat_featureid),
+  KEY `pagestat_pageid` (`pagestat_pageid`)
 ) /*$wgDBTableOptions*/;
 

-- 
To view, visit https://gerrit.wikimedia.org/r/73709
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I4c12e7eb796dae7db59d3e320839afbec10a8460
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/MathSearch
Gerrit-Branch: master
Gerrit-Owner: Physikerwelt <w...@physikerwelt.de>
Gerrit-Reviewer: Physikerwelt <w...@physikerwelt.de>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to