You are here

function number_update_6000 in Content Construction Kit (CCK) 6.3

Same name and namespace in other branches
  1. 6 modules/number/number.install \number_update_6000()
  2. 6.2 modules/number/number.install \number_update_6000()

Rename old decimal fields, which were really floats, to float

File

modules/number/number.install, line 47
Implementation of hook_install().

Code

function number_update_6000() {
  if ($abort = content_check_update('number')) {
    return $abort;
  }
  $ret = array();
  drupal_load('module', 'content');
  $ret[] = update_sql("UPDATE {" . content_field_tablename() . "} SET type='number_float' WHERE type = 'number_decimal'");
  content_clear_type_cache();
  return $ret;
}