profile_fields.name used to be nullable but is part of a unique key and so shouldn't be.

Related topics

File

modules/system/system.install, line 2201

Code

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;
}