You are here

function image_update_6104 in Image 6

Fix default value for {image}.image_size, introduced in image_update_5200().

File

./image.install, line 382

Code

function image_update_6104() {
  $ret = array();
  db_drop_primary_key($ret, 'image');
  db_change_field($ret, 'image', 'image_size', 'image_size', array(
    'description' => 'Primary Key: The {files}.filename of the image file. For image module this indicates the file size.',
    'type' => 'varchar',
    'length' => 32,
    'not null' => TRUE,
    'default' => '',
  ), array(
    'primary key' => array(
      'nid',
      'image_size',
    ),
  ));
  return $ret;
}