You are here

function user_import_update_3 in User Import 6.2

Same name and namespace in other branches
  1. 8 user_import.install \user_import_update_3()
  2. 5.2 user_import.install \user_import_update_3()
  3. 5 user_import.install \user_import_update_3()
  4. 6.4 user_import.install \user_import_update_3()
  5. 7 user_import.install \user_import_update_3()
  6. 7.2 user_import.install \user_import_update_3()

File

./user_import.install, line 162
Import and update users from a comma separated file (csv).

Code

function user_import_update_3() {
  $ret = array();
  db_drop_primary_key($ret, 'user_import');
  db_change_field($ret, 'user_import', 'iid', 'import_id', array(
    'type' => 'serial',
    'unsigned' => TRUE,
    'not null' => TRUE,
    'disp-width' => '10',
  ), array(
    'primary key' => array(
      'import_id',
    ),
  ));
  db_change_field($ret, 'user_import', 'first_line', 'first_line_skip', array(
    'type' => 'int',
    'unsigned' => TRUE,
    'not null' => TRUE,
    'default' => 0,
    'disp-width' => '10',
  ), array(
    'primary key' => array(
      'import_id',
    ),
  ));
  db_drop_index($ret, 'user_import_errors', 'import_id');
  db_change_field($ret, 'user_import_errors', 'iid', 'import_id', array(
    'type' => 'int',
    'unsigned' => TRUE,
    'not null' => TRUE,
    'default' => 0,
    'disp-width' => '10',
  ));
  db_add_index($ret, 'user_import_errors', 'import_id', array(
    'import_id',
  ));
  return $ret;
}