function faq_update_6003 in Frequently Asked Questions 7
Same name and namespace in other branches
- 6 faq.install \faq_update_6003()
- 7.2 faq.install \faq_update_6003()
Add the 'detailed_question' column to the 'faq_questions' table.
File
- ./
faq.install, line 271 - FAQ module install file.
Code
function faq_update_6003() {
$ret = array();
db_add_field('faq_questions', 'detailed_question', array(
'type' => 'text',
'size' => 'normal',
'not null' => TRUE,
));
db_update('faq_questions')
->expression('detailed_question', 'question')
->execute();
return t('Detailed question column added. Existing nodes have been given the same detailed question as current question.');
}