You are here

function party_activity_update_7001 in Party 7

Change primary identifier for the activity.

File

modules/party_activity/party_activity.install, line 111
Install scripts and other things for the party activity module

Code

function party_activity_update_7001() {
  db_drop_primary_key('party_activity');
  db_change_field('party_activity', 'party_activity_id', 'id', array(
    'type' => 'serial',
    'not null' => TRUE,
    'description' => 'Primary Key: Unique Party Activity Identifier',
  ), array(
    'primary key' => array(
      'id',
    ),
  ));
}