function guestbook_update_6001 in Guestbook 6.2
Same name and namespace in other branches
- 6 guestbook.install \guestbook_update_6001()
File
- ./
guestbook.install, line 46
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;
}