You are here

function services_update_7403 in Services 7.3

Add primary key to the services_user table, truncating it first

File

./services.install, line 318
Install, uninstall and update the Services module.

Code

function services_update_7403() {

  // We have to truncate the table because the table was wrongly
  // updating every single record
  db_truncate('services_user')
    ->execute();
  db_add_primary_key('services_user', array(
    'uid',
  ));
}