You are here

function uc_attribute_update_7001 in Ubercart 7.3

Change default description format to NULL.

File

uc_attribute/uc_attribute.install, line 476
Install, update and uninstall functions for the uc_attribute module.

Code

function uc_attribute_update_7001() {
  db_change_field('uc_attributes', 'format', 'format', array(
    'description' => 'Format of the attribute description.',
    'type' => 'int',
    'not null' => FALSE,
    'default' => NULL,
  ));
  db_update('uc_attributes')
    ->fields(array(
    'format' => filter_fallback_format(),
  ))
    ->execute();
}