You are here

function uc_product_update_9 in Ubercart 5

File

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

Code

function uc_product_update_9() {
  $ret = array();
  switch ($GLOBALS['db_type']) {
    case 'mysql':
    case 'mysqli':
      $ret[] = update_sql("CREATE TABLE {uc_product_features} (\n        `pfid` mediumint(9) NOT NULL default 0,\n        `nid` mediumint(9) NOT NULL default 0,\n        `fid` varchar(32) NOT NULL,\n        `description` text,\n        PRIMARY KEY (`pfid`),\n        KEY nid (nid)\n      ) /*!40100 DEFAULT CHARACTER SET UTF8 */ ;");
      break;
  }
  return $ret;
}