wiki.techinc.nl/maintenance/archives/patch-testrun.sql
Timo Tijhof 6404da3d39 rdbms: Remove outdated MySQL 4 references and fix doc URLs
- Remove or clarify ancient comments referencing MySQL 4.

- Oracle can't afford to host small HTML files for longer than two
  years, as such they make a point to break their URLs after a while.
  Update our references to the last 5.x release for now, where the same
  information resides (instead 404 or redirect to MySQL 8 docs).

Bug: T34217
Change-Id: I322cc8936f96c2545c63e7c9c1f5fa241e2b8c18
2021-01-30 22:47:33 +00:00

33 lines
820 B
SQL

--
-- 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,
tr_date char(14) binary,
tr_mw_version blob,
tr_php_version blob,
tr_db_version blob,
tr_uname blob,
primary key (tr_id)
) engine=InnoDB;
create table /*$wgDBprefix*/testitem (
ti_run int not null,
ti_name varchar(255),
ti_success bool,
unique key (ti_run, ti_name),
key (ti_run, ti_success),
foreign key (ti_run) references /*$wgDBprefix*/testrun(tr_id)
on delete cascade
) engine=InnoDB;