You are here

function biblio_update_7020 in Bibliography Module 7

Change the primary key of the biblio_contributor_data table.

File

./biblio.install, line 2286

Code

function biblio_update_7020() {
  $driver = db_driver();
  if ($driver == 'mysql') {
    db_query('ALTER TABLE {biblio_contributor_data} DROP PRIMARY KEY , ADD PRIMARY KEY ( `cid` )');
  }
  if ($driver == 'pgsql') {
    db_drop_primary_key('biblio_contributor_data');
    db_add_primary_key('biblio_contributor_data', array(
      'cid',
    ));
  }
}