Thread:Project:Support desk/Upgrading from 1.12 - 1.21 Database returned error "1054: Unknown column 'rev sha1' in 'field list' when running php update.php

Upgrading from :-

MediaWiki 1.12.0 PHP	 5.2.5 (isapi) MySQL	 5.0.24-community-

to

Mediawiki 1.21.1 PHP	 5.4 MYSQL	 5.6

running php update.php

I get the following error

Adding index type_action to table logging ...done. ...batch conversion of user_options: A database query syntax error has occurred.

The last attempted database query was: "SELECT rev_id,rev_page,rev_text_id,rev_timestamp,rev_comment,rev_user_text,rev _user,rev_minor_edit,rev_deleted,rev_len,rev_parent_id,rev_sha1,page_namespace,p age_title,page_id,page_latest,page_is_redirect,page_len,user_name  FROM `revisio n` INNER JOIN `page` ON ((page_id = rev_page)) LEFT JOIN `user` ON ((rev_user != 0) AND (user_id = rev_user))  WHERE page_id = '2183' AND rev_id = '11449'  LIMI T 1  " from within function "Revision::fetchFromConds". Database returned error "1054: Unknown column 'rev_sha1' in 'field list' (tdb01- mysql)"