You are here

function quotes_update_6100 in Quotes 6

Implementation of hook_update_N().

File

./quotes.install, line 232
Handles installation and updates for the quotes module.

Code

function quotes_update_6100() {

  // This update is provided for users upgrading from a release prior to 5.x-1.2.
  $ret = array();

  // 5.x-1.2 added 'citation'.
  if (!db_column_exists('quotes', 'citation')) {
    $spec = array(
      'description' => t('Source of the quote.'),
      'type' => 'varchar',
      'length' => '255',
      'not null' => FALSE,
    );
    db_add_field($ret, 'quotes', 'citation', $spec);
  }
  return $ret;
}