<?php
// $Id$

function mapi_profile_install() {
  switch ($GLOBALS['db_type']) {
    case 'mysql':
    case 'mysqli':
        // mapi profiles
        db_query("CREATE TABLE {mapi_profile_settings} (
          sid int unsigned NOT NULL default '0',
          profile varchar(255) NOT NULL default '',
          presenter varchar(255) NOT NULL default '',
          derivative varchar(255) NOT NULL default '',
          exts text NOT NULL,
          settings text NOT NULL,
          PRIMARY KEY sid (sid),
          KEY profile (profile)
        ) /*!40100 DEFAULT CHARACTER SET utf8 */;");
      break;
    case 'pgsql':
      break;
  }
}

function mapi_profile_uninstall() {
  db_query("DROP TABLE {mapi_profile_settings}");
}
