function node_update_7002

Extend the node_promote_status index to include all fields required for the node page query.

Related topics

File

modules/node/node.install, line 556

Code

function node_update_7002() {
    db_drop_index('node', 'node_promote_status');
    db_add_index('node', 'node_frontpage', array(
        'promote',
        'status',
        'sticky',
        'created',
    ));
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.