You are here

function word_link_update_7001 in Word Link 7

Same name and namespace in other branches
  1. 7.2 word_link.install \word_link_update_7001()

Adding visibility field.

File

./word_link.install, line 100
Install, update, and uninstall functions for the word_link module.

Code

function word_link_update_7001() {

  // Add the visibility field to the db.
  if (!db_field_exists('word_link', 'visibility')) {
    db_add_field('word_link', 'visibility', array(
      'type' => 'int',
      'not null' => TRUE,
      'default' => 0,
      'size' => 'tiny',
    ));
  }
}