You are here

function system_update_6040 in Drupal 6

Add a weight column to the upload table.

Related topics

File

modules/system/system.install, line 2379

Code

function system_update_6040() {
  $ret = array();
  if (db_table_exists('upload')) {
    db_add_field($ret, 'upload', 'weight', array(
      'type' => 'int',
      'not null' => TRUE,
      'default' => 0,
      'size' => 'tiny',
    ));
  }
  return $ret;
}