Update Field Collection from 1.0-beta11 to 1.0-beta12

Entity Translation has finally been merged which we have been early adopters on. There is a minor hook_update_n correction to resolve and upgrade path issues as well.

/**
 * Updates to Field Collection and schema alignment with v1.0-beta12
 */
function wetkit_core_update_7407() {
  // We were early adopters of Entity Translation integration:
  // http://drupal.org/files/issues/field_collection_field-1344672-510.patch
  // However a different hook_update_n was committed before patch merged so
  // we are ensuring that the new code in past hook gets called.
  $field_collection_version = drupal_get_installed_schema_version('field_collection');

  // Run only when Field Collection version < 7008.
  if ($field_collection_version < '7008') {
    drupal_set_installed_schema_version('field_collection', '7006');
  }
}

Comments

sylus created an issue. See original summary.

  • sylus committed 58416c2 on 7.x-4.x
    Fixed WetKit Core for Restore Issue #2828678: Update Field Collection...
  • sylus committed 5c5b3d3 on 7.x-4.x
    Fixed WetKit Bean for Issue #2828678: Update Field Collection from 1.0-...
  • sylus committed 768979e on 7.x-4.x
    Fixed WetKit Core for Issue #2828678: Update Field Collection from 1.0-...
  • sylus committed aff193d on 7.x-4.x
    Fixed WetKit Core for Revert "Issue #2828678: Update Field Collection...
sylus’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.