You are here

function draggableviews_update_7202 in DraggableViews 7.2

Add "parent" field to draggableviews_structure table.

File

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

Code

function draggableviews_update_7202() {

  // Commit 0fd7c9f create this as 7002().  This got rename to 7202().  Check if field exist.
  if (!db_field_exists('draggableviews_structure', 'parent')) {
    $spec = array(
      'description' => 'The order parent.',
      'type' => 'int',
      'unsigned' => FALSE,
      'not null' => TRUE,
      'default' => 0,
    );
    db_add_field('draggableviews_structure', 'parent', $spec);
  }
}