| 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 |
|
| 8 |
drop table if exists /*$wgDBprefix*/testitem; |
| 9 |
drop table if exists /*$wgDBprefix*/testrun; |
| 10 |
|
| 11 |
create table /*$wgDBprefix*/testrun ( |
| 12 |
tr_id int not null auto_increment, |
| 13 |
|
| 14 |
tr_date char(14) binary, |
| 15 |
tr_mw_version blob, |
| 16 |
tr_php_version blob, |
| 17 |
tr_db_version blob, |
| 18 |
tr_uname blob, |
| 19 |
|
| 20 |
primary key (tr_id) |
| 21 |
) engine=InnoDB; |
| 22 |
|
| 23 |
create table /*$wgDBprefix*/testitem ( |
| 24 |
ti_run int not null, |
| 25 |
ti_name varchar(255), |
| 26 |
ti_success bool, |
| 27 |
|
| 28 |
unique key (ti_run, ti_name), |
| 29 |
key (ti_run, ti_success), |
| 30 |
|
| 31 |
foreign key (ti_run) references /*$wgDBprefix*/testrun(tr_id) |
| 32 |
on delete cascade |
| 33 |
) engine=InnoDB; |