You are here

function node_import_update_6101 in Node import 6

Implementation of hook_update_N().

6.x-1.0-rc4 to 6.x-1.0-rc5:

  • rename the offset column to file_offset for pgsql (#384944).

File

./node_import.install, line 278
Installs, upgrades or uninstalls the node_import module.

Code

function node_import_update_6101() {
  $result = array();
  db_change_field($result, 'node_import_tasks', 'offset', 'file_offset', array(
    'type' => 'int',
    'unsigned' => TRUE,
    'not null' => TRUE,
    'default' => 0,
  ));
  db_drop_primary_key($result, 'node_import_status');
  db_change_field($result, 'node_import_status', 'offset', 'file_offset', array(
    'type' => 'int',
    'unsigned' => TRUE,
    'not null' => TRUE,
    'default' => 0,
  ), array(
    'primary key' => array(
      'taskid',
      'file_offset',
    ),
  ));
  return $result;
}