You are here

asset_bonus.install in Asset 6

File

contrib/asset_bonus/asset_bonus.install
View source
<?php

/**
 * Implementation of hook_install()
 */
function asset_bonus_install() {
  switch ($GLOBALS['db_type']) {
    case 'mysql':
    case 'mysqli':
      db_query("CREATE TABLE {asset_bonus} (\n        aid int(10) unsigned NOT NULL,\n        data blob,\n        PRIMARY KEY (aid)\n      ) TYPE=MyISAM /*!40100 DEFAULT CHARACTER SET utf8 */;");
    case 'pgsql':

      // @TODO: postgresql
      break;
  }
  drupal_set_message(t('Asset Bonus tables have been configured.'));
}
function asset_bonus_uninstall() {
  db_query('DROP TABLE {asset_bonus}');
}

Functions