You are here

function uc_product_update_11 in Ubercart 5

File

uc_product/uc_product.install, line 322
Database installation, uninstallation, and updates for the product module.

Code

function uc_product_update_11() {
  $ret = array();
  switch ($GLOBALS['db_type']) {
    case 'pgsql':
      db_change_column($ret, 'uc_products', 'pkg_qty', 'pkg_qty', 'smallint_unsigned', array(
        'not null' => true,
        'default' => 1,
      ));
      db_change_column($ret, 'uc_products', 'default_qty', 'defautl_qty', 'smallint_unsigned', array(
        'not null' => true,
        'default' => 1,
      ));
      break;
  }
  return $ret;
}