Upgrade to Drupal 4.7.12 failed (while upgrading from 4.7.11 to 4.7.21)
The solution is to manually create data_type field in log_civicrm_option_group table.

ALTER TABLE `log_civicrm_option_group` ADD `data_type` VARCHAR(128) 
CHARACTER SET utf8 COLLATE utf8_unicode_ci 
NULL DEFAULT NULL 
COMMENT 'Data Type of Option Group.';