You are here

function uc_file_update_6002 in Ubercart 6.2

Add primary keys to file_products and file_users.

File

uc_file/uc_file.install, line 277
Install, update and uninstall functions for the uc_file module.

Code

function uc_file_update_6002() {
  $ret = array();
  $new_field = array(
    'type' => 'serial',
    'unsigned' => TRUE,
    'not null' => TRUE,
  );
  db_add_field($ret, 'uc_file_users', 'fuid', $new_field, array(
    'primary key' => array(
      'fuid',
    ),
  ));
  db_add_field($ret, 'uc_file_products', 'fpid', $new_field, array(
    'primary key' => array(
      'fpid',
    ),
  ));
  return $ret;
}