domain_conf.install

// $Id: domain_conf.install,v 1.3.2.1 2008/03/30 20:42:13 agentken Exp $

/**
 * @file
 * Install file.
 */


/**
 * Implements hook_install()
 */

function domain_conf_install() {
  switch ($GLOBALS['db_type']) {
    case 'mysqli':
    case 'mysql':
      db_query(
        "CREATE TABLE IF NOT EXISTS {domain_conf} (
           domain_id int(11) NOT NULL default '0',
           settings blob,
           PRIMARY KEY (domain_id)
           ) /*!40100 DEFAULT CHARACTER SET UTF8 */ "
);
      break;
    case 'pgsql':
      db_query("CREATE TABLE {domain_conf} (
        domain_id integer NOT NULL default '0',
        settings bytea,
        PRIMARY KEY (domain_id)
        )"
);
      break;
  }
}

/**
 * Implements hook_uninstall()
 */

function domain_conf_uninstall() {
  db_query("DROP TABLE {domain_conf}");
}