You are here

function domain_update_7307 in Domain Access 7.3

Updates the {domain_export} table for new key handling.

File

./domain.install, line 363
Install file.

Code

function domain_update_7307(&$sandbox) {
  db_drop_primary_key('domain_export');

  // Just in case a unique key already exists, drop it.
  db_drop_unique_key('domain_export', 'machine_name');
  db_add_unique_key('domain_export', 'machine_name', array(
    'machine_name',
  ));
  return t('{domain_export} table keys updated.');
}