You are here

function hosting_package_install in Hosting 5

Same name and namespace in other branches
  1. 6.2 package/hosting_package.install \hosting_package_install()

File

package/hosting_package.install, line 2

Code

function hosting_package_install() {
  switch ($GLOBALS['db_type']) {
    case 'mysql':
    case 'mysqli':
      db_query("CREATE TABLE {hosting_package} (\n        vid int NOT NULL default '0',\n        nid int(10) unsigned NOT NULL default '0',\n        package_type varchar(16) NOT NULL default '',\n        short_name longtext NOT NULL default '',\n        description longtext NOT NULL default '',\n        PRIMARY KEY (vid)\n      ) /*!40100 DEFAULT CHARACTER SET UTF8 */ ");
      db_query("CREATE TABLE {hosting_package_instance} (\n        iid int NOT NULL DEFAULT '0',\n        rid int(11) NOT NULL default '0',\n        package_id int(11) NOT NULL default '0',\n        filename longtext NOT NULL DEFAULT '',\n        schema_version int(10) NOT NULL default '0',\n        version longtext NOT NULL default '',\n        status int(1) NOT NULL default '0',\n        PRIMARY KEY (iid)\n      ) /*!40100 DEFAULT CHARACTER SET UTF8 */ ");
      db_query("CREATE TABLE {hosting_package_languages} (\n        iid int NOT NULL,\n        language VARCHAR(12) NOT NULL DEFAULT ''\n      )  /*!40100 DEFAULT CHARACTER SET UTF8 */");
      break;
  }
}