You are here

function guestbook_update_6201 in Guestbook 7.2

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

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

File

./guestbook.install, line 54

Code

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