You are here

function faq_update_6003 in Frequently Asked Questions 6

Same name and namespace in other branches
  1. 7.2 faq.install \faq_update_6003()
  2. 7 faq.install \faq_update_6003()

Add the 'detailed_question' column to the 'faq_questions' table.

Return value

An array containing the results of the update.

File

./faq.install, line 165
FAQ module install file.

Code

function faq_update_6003() {
  $ret = array();
  db_add_field($ret, 'faq_questions', 'detailed_question', array(
    'type' => 'text',
    'size' => 'normal',
    'not null' => TRUE,
  ));
  $ret[] = update_sql("UPDATE {faq_questions} SET detailed_question = question");
  return $ret;
}