You are here

function ldapauth_update_6003 in LDAP integration 6

File

./ldapauth.install, line 275
ldapauth module installation and upgrade code.

Code

function ldapauth_update_6003() {
  $ret = array();
  db_drop_primary_key($ret, 'ldapauth');
  db_change_field($ret, 'ldapauth', 'sid', 'sid', array(
    'type' => 'serial',
    'size' => 'tiny',
    'not null' => TRUE,
  ), array(
    'primary key' => array(
      'sid',
    ),
  ));
  db_drop_index($ret, 'ldapauth', 'sid');
  db_add_unique_key($ret, 'ldapauth', 'name', array(
    'name',
  ));
  return $ret;
}