function draggableviews_update_7206 in DraggableViews 7.2
Support MYISAM store engine tables.
File
- ./
draggableviews.install, line 314 - Draggableviews defines a new database schema for saving the order.
Code
function draggableviews_update_7206() {
// draggableviews_update_7202() added an index that was too big for MYISAM store engine tables (now fixed).
// MYISAM index can only have 1000 byte columns. Using utf8 collation, this is approximately 55.5 characters.
if (db_index_exists('draggableviews_structure', 'view')) {
db_drop_index('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);
}
}