ALTER TABLE `revision_revision` ADD `hash` VARCHAR(255) NOT NULL AFTER `params`, ADD INDEX (`hash`);

TRUNCATE `revision_comment`;
TRUNCATE `revision_related`;
TRUNCATE `revision_revision`;
TRUNCATE `revision_users`;
