You are here

function uc_ups_install in Ubercart 5

Same name and namespace in other branches
  1. 6.2 shipping/uc_ups/uc_ups.install \uc_ups_install()

File

shipping/uc_ups/uc_ups.install, line 3

Code

function uc_ups_install() {
  switch ($GLOBALS['db_type']) {
    case 'mysql':
    case 'mysqli':
      db_query("CREATE TABLE {uc_ups_products} (\n        `vid` mediumint(9) unsigned NOT NULL default 0,\n        `nid` mediumint(9) unsigned NOT NULL default 0,\n        `pkg_type` varchar(2) NOT NULL,\n        PRIMARY KEY (`vid`)\n      ) /*!40100 DEFAULT CHARACTER SET UTF8 */ ;");
      break;
    case 'pgsql':
      db_query("CREATE TABLE {uc_ups_products} (\n        vid int_unsigned NOT NULL default 0,\n        nid int_unsigned NOT NULL default 0,\n        pkg_type varchar(2) NOT NULL default '',\n        PRIMARY KEY (vid)\n      );");
      break;
  }
}