function draggableviews_update_6400 in DraggableViews 7
Same name and namespace in other branches
- 6.3 draggableviews.install \draggableviews_update_6400()
Alter schema to add arguments field
File
- ./
draggableviews.install, line 135 - Draggableviews defines a new database schema for saving the collapsed/expand state of views.
Code
function draggableviews_update_6400() {
$ret = array();
// TODO update_sql has been removed. Use the database API for any schema or data changes.
$ret[] = array();
db_add_field('draggableviews_structure', 'args', array(
'type' => 'varchar',
'length' => 255,
));
db_add_primary_key('draggableviews_structure', array(
'nid',
'vid',
'delta',
'args',
));
// hook_update_N() no longer returns a $ret array. Instead, return
// nothing or a translated string indicating the update ran successfully.
// See http://drupal.org/node/224333#update_sql.
return t('TODO Add a descriptive string here to show in the UI.');
}