mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Math
synced 2024-12-18 10:30:51 +00:00
d61409f974
The 'math' table will no longer be created on a default install unless you've explicitly enabled the Math plugin at install time; the usual update.php procedure will add it in. Postgres, Oracle, MSSQL, and DB2 variants are included -- broken out from the core files -- but have not been tested. I know there has been some code duplication in parser test infrastructure but could only find one instance of the parser test temporary table setup to remove the 'math' table from (the extension adds it back via the hook). If the phpunit-based runner breaks, please track it down and fix it there too.
24 lines
684 B
SQL
24 lines
684 B
SQL
--
|
|
-- Used by the math module to keep track
|
|
-- of previously-rendered items.
|
|
--
|
|
CREATE TABLE /*_*/math (
|
|
-- Binary MD5 hash of the latex fragment, used as an identifier key.
|
|
math_inputhash varbinary(16) NOT NULL,
|
|
|
|
-- Not sure what this is, exactly...
|
|
math_outputhash varbinary(16) NOT NULL,
|
|
|
|
-- texvc reports how well it thinks the HTML conversion worked;
|
|
-- if it's a low level the PNG rendering may be preferred.
|
|
math_html_conservativeness tinyint NOT NULL,
|
|
|
|
-- HTML output from texvc, if any
|
|
math_html text,
|
|
|
|
-- MathML output from texvc, if any
|
|
math_mathml text
|
|
) /*$wgDBTableOptions*/;
|
|
|
|
CREATE UNIQUE INDEX /*i*/math_inputhash ON /*_*/math (math_inputhash);
|