You are here

function advancedqueue_update_7101 in Advanced Queue 7

File

./advancedqueue.install, line 142
Install, update, and uninstall functions for the Advanced-queue module.

Code

function advancedqueue_update_7101(&$sandbox) {
  $schema = drupal_get_schema_unprocessed('advancedqueue', 'advancedqueue');
  $new_keys = array(
    'unique keys' => array(
      'item_key' => array(
        'item_key',
      ),
    ),
  );
  db_add_field('advancedqueue', 'item_key', $schema['fields']['item_key'], $new_keys);
  return "Added item key column to {advancedqueue} table.";
}