mediawiki.js: Clean up and improve documentation coverage
[mediawiki.git] / maintenance / archives / patch-testrun.sql
blob6699b5546b7b054f67e12372588a1cb5f49c3e59
1 --
2 -- Optional tables for parserTests recording mode
3 -- With --record option, success data will be saved to these tables,
4 -- and comparisons of what's changed from the previous run will be
5 -- displayed at the end of each run.
6 --
7 -- These tables currently require MySQL 5 (or maybe 4.1?) for subselects.
8 --
10 drop table if exists /*$wgDBprefix*/testitem;
11 drop table if exists /*$wgDBprefix*/testrun;
13 create table /*$wgDBprefix*/testrun (
14   tr_id int not null auto_increment,
16   tr_date char(14) binary,
17   tr_mw_version blob,
18   tr_php_version blob,
19   tr_db_version blob,
20   tr_uname blob,
22   primary key (tr_id)
23 ) engine=InnoDB;
25 create table /*$wgDBprefix*/testitem (
26   ti_run int not null,
27   ti_name varchar(255),
28   ti_success bool,
30   unique key (ti_run, ti_name),
31   key (ti_run, ti_success),
33   foreign key (ti_run) references /*$wgDBprefix*/testrun(tr_id)
34     on delete cascade
35 ) engine=InnoDB;