- Patch #625942 by catch: added index to avoid filesort in filter_formats().

merge-requests/26/head
Dries Buytaert 2009-11-07 22:14:58 +00:00
parent 5a5f34b0fa
commit 98258d6c59
1 changed files with 4 additions and 0 deletions

View File

@ -97,6 +97,9 @@ function filter_schema() {
'unique keys' => array(
'name' => array('name'),
),
'indexes' => array(
'weight' => array('weight'),
),
);
$schema['cache_filter'] = drupal_get_schema_unprocessed('system', 'cache');
@ -115,6 +118,7 @@ function filter_schema() {
*/
function filter_update_7000() {
db_add_field('filter_formats', 'weight', array('type' => 'int', 'not null' => TRUE, 'default' => 0, 'size' => 'tiny'));
db_add_index('filter_formats', 'weight', array('weight'));
}
/**