jenkins-bot has submitted this change and it was merged. Change subject: Add separate database table for LaTeXML (step 1) ......................................................................
Add separate database table for LaTeXML (step 1) Currently the PNG and the LaTeXML rendering mode use a common table in the database. If both rendering modes are allowed in a wiki simultaneously this causes problems, because the fields are continuously overwritten. This change adds a new table for the LaTeXML rendering mode to the database. Bug: 65522 Change-Id: If5b887e908f22248789d478c34b03ea3c7da393a --- A db/mathlatexml.mysql.sql A db/mathlatexml.pg.sql A db/mathlatexml.sqllite.sql 3 files changed, 54 insertions(+), 0 deletions(-) Approvals: Frédéric Wang: Looks good to me, approved jenkins-bot: Verified diff --git a/db/mathlatexml.mysql.sql b/db/mathlatexml.mysql.sql new file mode 100644 index 0000000..89d8a6c --- /dev/null +++ b/db/mathlatexml.mysql.sql @@ -0,0 +1,18 @@ +-- +-- Used by the math module to keep track +-- of previously-rendered items. +-- +CREATE TABLE /*_*/mathlatexml ( + -- Binary MD5 hash of math_inputtex, used as an identifier key. + math_inputhash varbinary(16) NOT NULL PRIMARY KEY, + -- the user input + math_inputtex text NOT NULL, + -- the validated tex + math_tex text, + -- MathML output LaTeXML + math_mathml text, + -- SVG output mathoid + math_svg text, + -- MW_MATHSTYLE_(INLINE_DISPLAYSTYLE|DISPLAY|INLINE) + math_style tinyint +) /*$wgDBTableOptions*/; diff --git a/db/mathlatexml.pg.sql b/db/mathlatexml.pg.sql new file mode 100644 index 0000000..6d2971b --- /dev/null +++ b/db/mathlatexml.pg.sql @@ -0,0 +1,18 @@ +-- +-- Used by the math module to keep track +-- of previously-rendered items. +-- +CREATE TABLE /*_*/mathlatexml ( + -- Binary MD5 hash of math_inputtex, used as an identifier key. + math_inputhash BYTEA PRIMARY KEY, + -- the user input + math_inputtex TEXT NOT NULL, + -- the validated tex + math_tex TEXT, + -- MathML output LaTeXML + math_mathml TEXT, + -- SVG output mathoid + math_svg TEXT, + -- MW_MATHSTYLE_(INLINE_DISPLAYSTYLE|DISPLAY|INLINE) + math_style SMALLINT +) /*$wgDBTableOptions*/; diff --git a/db/mathlatexml.sqllite.sql b/db/mathlatexml.sqllite.sql new file mode 100644 index 0000000..89d8a6c --- /dev/null +++ b/db/mathlatexml.sqllite.sql @@ -0,0 +1,18 @@ +-- +-- Used by the math module to keep track +-- of previously-rendered items. +-- +CREATE TABLE /*_*/mathlatexml ( + -- Binary MD5 hash of math_inputtex, used as an identifier key. + math_inputhash varbinary(16) NOT NULL PRIMARY KEY, + -- the user input + math_inputtex text NOT NULL, + -- the validated tex + math_tex text, + -- MathML output LaTeXML + math_mathml text, + -- SVG output mathoid + math_svg text, + -- MW_MATHSTYLE_(INLINE_DISPLAYSTYLE|DISPLAY|INLINE) + math_style tinyint +) /*$wgDBTableOptions*/; -- To view, visit https://gerrit.wikimedia.org/r/134324 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: If5b887e908f22248789d478c34b03ea3c7da393a Gerrit-PatchSet: 2 Gerrit-Project: mediawiki/extensions/Math Gerrit-Branch: master Gerrit-Owner: Physikerwelt <w...@physikerwelt.de> Gerrit-Reviewer: Frédéric Wang <fred.w...@free.fr> Gerrit-Reviewer: Physikerwelt <w...@physikerwelt.de> Gerrit-Reviewer: TheDJ <hartman.w...@gmail.com> Gerrit-Reviewer: jenkins-bot <> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits