You are here

function filedepot_update_6002 in filedepot 6

Implementation of hook_update_N(). RC4 - After adding support for OG - needed to change the tag class to allow perms/metrics assigned by groups

File

./filedepot.install, line 1093
filedepot.install filedepot: File Management Module developed by Nextide www.nextide.ca

Code

function filedepot_update_6002() {
  switch ($GLOBALS['db_type']) {
    case 'mysql':
    case 'mysqli':
      db_query("ALTER TABLE {nextag_metrics} CHANGE `uid` `groupid` MEDIUMINT( 9 ) NULL DEFAULT NULL");
      break;
    case 'pgsql':
      db_change_column($ret, 'nextag_metrics', 'uid', 'groupid', 'int', array(
        'not null' => FALSE,
      ));
      break;
  }
}