You are here

function scald_update_7008 in Scald: Media Management made easy 7

Change (provider, type, base_id) from unique to normal key.

See also

https://drupal.org/node/1971710

File

./scald.install, line 594

Code

function scald_update_7008() {
  db_drop_unique_key('scald_atoms', 'u_provider_type_base_id');
  db_add_index('scald_atoms', 'i_provider_type_base_id', array(
    array(
      'provider',
      64,
    ),
    array(
      'type',
      64,
    ),
    array(
      'base_id',
      64,
    ),
  ));
  return array();
}