function word_link_update_7002 in Word Link 7
Same name and namespace in other branches
- 7.2 word_link.install \word_link_update_7002()
Adding rel field.
File
- ./
word_link.install, line 117 - Install, update, and uninstall functions for the word_link module.
Code
function word_link_update_7002() {
$schema = word_link_schema();
$field = 'rel';
$table = 'word_link';
// Add the rel field to the db.
if (!db_field_exists($table, $field)) {
db_add_field($table, $field, $schema[$table]['fields'][$field]);
}
}