You are here

function guestbook_update_6001 in Guestbook 6

Same name and namespace in other branches
  1. 6.2 guestbook.install \guestbook_update_6001()

File

./guestbook.install, line 45

Code

function guestbook_update_6001() {
  $ret = array();
  db_drop_primary_key($ret, 'guestbook');
  db_change_field($ret, 'guestbook', 'id', 'id', array(
    'type' => 'serial',
    'unsigned' => TRUE,
    'not null' => TRUE,
  ), array(
    'primary key' => array(
      'id',
    ),
  ));
  db_change_field($ret, 'guestbook', 'anonname', 'anonname', array(
    'type' => 'varchar',
    'length' => '128',
    'not null' => FALSE,
  ));
  return $ret;
}