You are here

function webform_update_7311 in Webform 7.4

Same name and namespace in other branches
  1. 7.3 webform.install \webform_update_7311()

Add an index for nid_uid_sid to webform_submissions.

File

./webform.install, line 1027
Webform module install/schema hooks.

Code

function webform_update_7311() {
  if (!db_index_exists('webform_submissions', 'nid_uid_sid')) {
    db_add_index('webform_submissions', 'nid_uid_sid', array(
      'nid',
      'uid',
      'sid',
    ));
  }
}