Increase size of the math_mathml in the mathlatexml table

The type text allows text with maximum length of 64k only. Since the
MathML generated by LaTeXML is quite verbose this is too small for
some equations used at Wikipedia.

Bug: 73090
Change-Id: Id09ec6201f68efe63a439f6e85a53876d5c1e521
This commit is contained in:
physikerwelt (Moritz Schubotz) 2014-11-06 21:06:19 +01:00
parent d3a43b5227
commit d9522b6049
3 changed files with 6 additions and 1 deletions

View File

@ -232,6 +232,10 @@ class MathHooks {
if ( in_array( $type, array( 'mysql', 'sqlite', 'postgres' ) ) ) {
$sql = dirname( __FILE__ ) . '/db/mathlatexml.' . $type . '.sql';
$updater->addExtensionTable( 'mathlatexml', $sql );
if ( $type == 'mysql' ){
$sql = dirname( __FILE__ ) . '/db/patches/mathlatexml.mathml-length-adjustment.mysql.sql';
$updater->modifyExtensionField( 'mathlatexml', 'math_mathml', $sql );
}
} else {
throw new MWException( "Math extension does not currently support $type database for LaTeXML." );
}

View File

@ -10,7 +10,7 @@ CREATE TABLE /*_*/mathlatexml (
-- the validated tex
math_tex text,
-- MathML output LaTeXML
math_mathml text,
math_mathml mediumtext,
-- SVG output mathoid
math_svg text,
-- MW_MATHSTYLE_(INLINE_DISPLAYSTYLE|DISPLAY|INLINE)

View File

@ -0,0 +1 @@
ALTER TABLE /*_*/mathlatexml MODIFY math_mathml mediumtext;