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*/;