You are here

function node_expire_update_2 in Node expire 5

Handle database changes from 5.x-1.1

File

./node_expire.install, line 72

Code

function node_expire_update_2() {
  $ret = array();
  switch ($GLOBALS['db_type']) {
    case 'mysql':
    case 'mysqli':
      $ret[] = update_sql("ALTER TABLE {node_expire}\n        CHANGE isroot isroot TINYINT( 1 ) UNSIGNED NOT NULL DEFAULT '0',\n        CHANGE lastnotify lastnotify INT( 10 ) UNSIGNED NOT NULL DEFAULT '0',\n        ADD INDEX (expire),\n        ADD INDEX (expiremode),\n        ADD INDEX (lastnotify);");
      break;
  }
  return $ret;
}