function feedback_update_6101 in Feedback 7.2
Same name and namespace in other branches
- 6.2 feedback.install \feedback_update_6101()
Add column for absolute URL.
File
- ./
feedback.install, line 106 - Installation functions for Feedback module.
Code
function feedback_update_6101() {
db_add_field('feedback', 'url', array(
'type' => 'text',
'not null' => TRUE,
));
// Set 'url' to the value of 'location' for all existing entries.
db_update('feedback')
->expression('url', 'location')
->execute();
}