function user_import_update_3 in User Import 7.2
Same name and namespace in other branches
- 8 user_import.install \user_import_update_3()
- 5.2 user_import.install \user_import_update_3()
- 5 user_import.install \user_import_update_3()
- 6.4 user_import.install \user_import_update_3()
- 6.2 user_import.install \user_import_update_3()
- 7 user_import.install \user_import_update_3()
File
- ./
user_import.install, line 191 - 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;
}