You are here

function panelizer_update_7301 in Panelizer 7.3

Add an index to {panelizer_entity} revision IDs.

File

./panelizer.install, line 1238
Install, update and uninstall functions for the panelizer module.

Code

function panelizer_update_7301() {
  if (!db_index_exists('panelizer_entity', 'revision_id')) {
    db_add_index('panelizer_entity', 'revision_id', array(
      'revision_id',
    ));
    return t('Added an extra index on the {panelizer_entity} table for the revision_id column.');
  }
  else {
    return t('There was already an index on the {panelizer_entity} table for the revision_id column, so nothing was done.');
  }
}