You are here

function uc_stock_update_6000 in Ubercart 6.2

File

uc_stock/uc_stock.install, line 82
Install, update and uninstall functions for the uc_stock module.

Code

function uc_stock_update_6000() {
  $ret = array();
  db_drop_index($ret, 'uc_product_stock', 'nid');
  db_change_field($ret, 'uc_product_stock', 'nid', 'nid', array(
    'type' => 'int',
    'unsigned' => TRUE,
    'not null' => TRUE,
    'default' => 0,
  ), array(
    'indexes' => array(
      'nid' => array(
        'nid',
      ),
    ),
  ));
  db_change_field($ret, 'uc_product_stock', 'active', 'active', array(
    'type' => 'int',
    'unsigned' => TRUE,
    'not null' => TRUE,
    'default' => 0,
  ));
  return $ret;
}