function draggableviews_update_7203 in DraggableViews 7.2
Add indexes to the draggableviews_structure table.
File
- ./
draggableviews.install, line 263 - Draggableviews defines a new database schema for saving the order.
Code
function draggableviews_update_7203() {
if (!db_index_exists('draggableviews_structure', 'view')) {
$index_data = array(
array(
'view_name',
50,
),
array(
'view_display',
50,
),
array(
'args',
50,
),
'entity_id',
);
db_add_index('draggableviews_structure', 'view', $index_data);
}
if (!db_index_exists('draggableviews_structure', 'weight')) {
db_add_index('draggableviews_structure', 'weight', array(
'weight',
));
}
}