You are here

function shoutbox_update_7000 in Shoutbox 7

Add default value to "hostname" column.

File

./shoutbox.install, line 189
Install, update and uninstall functions for the Shoutbox module.

Code

function shoutbox_update_7000() {
  $field_info = array(
    'type' => 'varchar',
    'length' => 255,
    'default' => 'localhost',
    'not null' => TRUE,
    'description' => 'The hostname where the post originated.',
  );
  db_change_field('shoutbox', 'hostname', 'hostname', $field_info);
}