You are here

function wysiwyg_update_6204 in Wysiwyg 6.2

Add primary index to {wysiwyg_user}.

File

./wysiwyg.install, line 439

Code

function wysiwyg_update_6204() {
  $ret = array();
  db_drop_index($ret, 'wysiwyg_user', 'uid');
  db_drop_index($ret, 'wysiwyg_user', 'format');
  db_change_field($ret, 'wysiwyg_user', 'format', 'format', array(
    'type' => 'int',
    'not null' => TRUE,
  ), array(
    'primary key' => array(
      'uid',
      'format',
    ),
    'indexes' => array(
      'uid' => array(
        'uid',
      ),
    ),
  ));
  return $ret;
}