You are here

function number_update_6000 in Content Construction Kit (CCK) 6

Same name and namespace in other branches
  1. 6.3 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 46

Code

function number_update_6000() {
  $ret = array();
  $ret[] = update_sql("UPDATE {" . content_field_tablename() . "} SET type='number_float' WHERE type = 'number_decimal'");
  content_clear_type_cache();
  return $ret;
}