You are here

function forward_update_3 in Forward 7

Same name and namespace in other branches
  1. 5 forward.install \forward_update_3()
  2. 6 forward.install \forward_update_3()

Changed forward_statistics to handle non-node paths

File

./forward.install, line 159
Install, update and uninstall functions for the forward module.

Code

function forward_update_3() {
  $ret = array();
  db_add_field('forward_log', 'path', array(
    'type' => 'varchar',
    'length' => 255,
    'not null' => TRUE,
    'default' => '<front>',
  ));
  db_add_index('forward_log', 'forward_path', array(
    'path',
  ));

  // TODO update_sql has been removed. Use the database API for any schema or data changes.
  $ret[] = array();

  // TODO update_sql has been removed. Use the database API for any schema or data changes.
  $ret[] = array();
  db_drop_index('forward_log', 'forward_nid');
  db_drop_field('forward_log', 'nid');
  return t('Forward statistics updated for non-node paths.');
}