You are here

function draggableviews_update_6400 in DraggableViews 6.3

Same name and namespace in other branches
  1. 7 draggableviews.install \draggableviews_update_6400()

Alter schema to add arguments field

File

./draggableviews.install, line 128
Draggableviews defines a new database schema for saving the collapsed/expand state of views.

Code

function draggableviews_update_6400() {
  $ret = array();
  $ret[] = update_sql('ALTER TABLE {draggableviews_structure} DROP PRIMARY KEY');
  db_add_field($ret, 'draggableviews_structure', 'args', array(
    'type' => 'varchar',
    'length' => 255,
  ));
  db_add_primary_key($ret, 'draggableviews_structure', array(
    'nid',
    'vid',
    'delta',
    'args',
  ));
  return $ret;
}