2006-11-11 12:33:46 +00:00
|
|
|
--
|
|
|
|
|
-- Optional tables for parserTests recording mode
|
|
|
|
|
-- With --record option, success data will be saved to these tables,
|
|
|
|
|
-- and comparisons of what's changed from the previous run will be
|
|
|
|
|
-- displayed at the end of each run.
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
drop table if exists /*$wgDBprefix*/testitem;
|
|
|
|
|
drop table if exists /*$wgDBprefix*/testrun;
|
|
|
|
|
|
|
|
|
|
create table /*$wgDBprefix*/testrun (
|
|
|
|
|
tr_id int not null auto_increment,
|
2012-10-20 11:35:38 +00:00
|
|
|
|
2011-01-20 23:56:47 +00:00
|
|
|
tr_date char(14) binary,
|
2006-11-11 12:33:46 +00:00
|
|
|
tr_mw_version blob,
|
|
|
|
|
tr_php_version blob,
|
|
|
|
|
tr_db_version blob,
|
|
|
|
|
tr_uname blob,
|
2012-10-20 11:35:38 +00:00
|
|
|
|
2006-11-11 12:33:46 +00:00
|
|
|
primary key (tr_id)
|
|
|
|
|
) engine=InnoDB;
|
|
|
|
|
|
|
|
|
|
create table /*$wgDBprefix*/testitem (
|
|
|
|
|
ti_run int not null,
|
2011-01-20 23:56:47 +00:00
|
|
|
ti_name varchar(255),
|
2006-11-11 12:33:46 +00:00
|
|
|
ti_success bool,
|
2012-10-20 11:35:38 +00:00
|
|
|
|
2006-11-11 12:33:46 +00:00
|
|
|
unique key (ti_run, ti_name),
|
|
|
|
|
key (ti_run, ti_success),
|
2012-10-20 11:35:38 +00:00
|
|
|
|
2006-11-11 12:33:46 +00:00
|
|
|
foreign key (ti_run) references /*$wgDBprefix*/testrun(tr_id)
|
|
|
|
|
on delete cascade
|
|
|
|
|
) engine=InnoDB;
|