You are here

function draggableviews_update_7201 in DraggableViews 7.2

Increase sizes of view_name and view_display fields of draggableviews_structure table.

File

./draggableviews.install, line 223
Draggableviews defines a new database schema for saving the order.

Code

function draggableviews_update_7201() {
  $new_field = array(
    'description' => 'Makes the order unique for each view.',
    'type' => 'varchar',
    'length' => 128,
    'not null' => TRUE,
    'default' => '',
  );
  db_change_field('draggableviews_structure', 'view_name', 'view_name', $new_field);
  $new_field = array(
    'description' => 'Makes the order unique for each view display.',
    'type' => 'varchar',
    'length' => 64,
    'not null' => TRUE,
    'default' => '',
  );
  db_change_field('draggableviews_structure', 'view_display', 'view_display', $new_field);
}