mediawiki-extensions-Math/db/mathlog.mysql.sql
physikerwelt (Moritz Schubotz) 54ad7facb0 Add logging table
* Adds a database table to store log entries in the database
* Creates the mathlog table if the mathdebug mode is enabled
* Replaces dirname( __FILE__ ) -> __DIR__

Change-Id: I7935f33e04a1c9d7d4f1dbbc600e840f07c19dad
2014-11-18 17:48:37 +00:00

22 lines
681 B
SQL

--
-- Used by the math module to oganize the log files from
-- different rendering engines
--
CREATE TABLE /*_*/mathlog (
-- Binary MD5 hash of math_inputtex, used as an identifier key.
math_inputhash varbinary(16) NOT NULL,
-- the log input
math_log text NOT NULL,
-- the post request sent
math_post text,
-- MW_MATH_(MAHML|LATEXML)
math_mode tinyint,
-- time needed to answer the request in ms
math_rederingtime int,
-- statuscode returned by the rendering engine
math_statuscode tinyint,
-- timestamp
math_timestamp TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
-- key
key ( math_inputhash, math_mode )
) /*$wgDBTableOptions*/;