system_update_6032
Definition
system_update_6032()
modules/system/system.install, line 2112
Description
profile_fields.name used to be nullable but is part of a unique key and so shouldn't be.
Code
<?php
function system_update_6032() {
$ret = array();
if (db_table_exists('profile_fields')) {
db_drop_unique_key($ret, 'profile_fields', 'name');
db_change_field($ret, 'profile_fields', 'name', 'name', array('type' => 'varchar', 'length' => 128, 'not null' => TRUE, 'default' => ''));
db_add_unique_key($ret, 'profile_fields', 'name', array('name'));
}
return $ret;
}
?> 