views-upgrade-error : due to column absence query fails in BAO's while 'enitity' drupal module tries to access core data of civicrm through views

this PR is based (dependent) on : https://github.com/civicrm/civicrm-core/pull/3257