wiki.techinc.nl/tests/phpunit/includes/Revision/drop-pre-mcr-fields.sqlite.sql
daniel 40fb8bcdc9 MCR tests: drop MCR fields when testing old schema
This fixes an inverse logic bug that causes tests to fail on
installations that do not have the pre-MCR fields in the database.

Bug: T238958
Change-Id: I4817b868adec4385ed99e33ad48e94e751f7e4cb
2019-12-03 23:20:40 +01:00

15 lines
536 B
SQL

DROP TABLE /*_*/revision;
CREATE TABLE /*_*/revision (
rev_id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
rev_page INTEGER NOT NULL,
rev_comment BLOB NOT NULL default '',
rev_user INTEGER NOT NULL default 0,
rev_user_text varchar(255) NOT NULL default '',
rev_timestamp blob(14) NOT NULL default '',
rev_minor_edit INTEGER NOT NULL default 0,
rev_deleted INTEGER NOT NULL default 0,
rev_len INTEGER unsigned,
rev_parent_id INTEGER default NULL,
rev_sha1 varbinary(32) NOT NULL default ''
) /*$wgDBTableOptions*/;