Thread:Project:Support desk/upgrade problems: 1.11 -- 1.21/reply (14)

or just add the missing rev_sha1 field manually executing ./maintenance/archives/patch-rev_sha1.sql:

ALTER TABLE /*$wgDBprefix*/revision ADD rev_sha1 varbinary(32) NOT NULL default '';