You are here

function guestbook_update_6201 in Guestbook 6.2

Same name and namespace in other branches
  1. 7.2 guestbook.install \guestbook_update_6201()

Add default value for {guestbook}.anon* columns.

File

./guestbook.install, line 77

Code

function guestbook_update_6201() {
  $ret = array();
  db_change_field($ret, 'guestbook', 'anonname', 'anonname', array(
    'type' => 'varchar',
    'length' => '128',
    'not null' => FALSE,
    'default' => '',
  ));
  db_change_field($ret, 'guestbook', 'anonemail', 'anonemail', array(
    'type' => 'varchar',
    'length' => '128',
    'not null' => FALSE,
    'default' => '',
  ));
  db_change_field($ret, 'guestbook', 'anonwebsite', 'anonwebsite', array(
    'type' => 'varchar',
    'length' => '128',
    'not null' => FALSE,
    'default' => '',
  ));
  return $ret;
}