You are here

function privatemsg_update_7005 in Privatemsg 7.2

Same name and namespace in other branches
  1. 7 privatemsg.install \privatemsg_update_7005()

Add primary key to {pm_index}.

File

./privatemsg.install, line 348
Install file for privatemsg.module

Code

function privatemsg_update_7005() {
  if (!db_index_exists('pm_index', 'PRIMARY')) {
    db_add_primary_key('pm_index', array(
      'mid',
      'recipient',
      'type',
    ));
  }
}