You are here

function biblio_update_7021 in Bibliography Module 7

Add alt_form column to the biblio_contributor_data table.

File

./biblio.install, line 2300

Code

function biblio_update_7021() {
  if (!db_field_exists('biblio_contributor_data', 'alt_form')) {
    $spec = array(
      'type' => 'int',
      'not null' => TRUE,
      'default' => 0,
      'unsigned' => TRUE,
      'description' => 'Alternate form of an author name, this value points to the desired form (cid), this form is kept in the database so  that future imports of the same name will not create a new author.',
    );
    db_add_field('biblio_contributor_data', 'alt_form', $spec);
  }
}