summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRon Jerome2013-02-25 01:35:44 (GMT)
committer Ron Jerome2013-02-25 01:35:44 (GMT)
commit7efc62443ded9adc1d67558e39739cf9f69b692b (patch)
tree04c42f93579be6a407264e39258b72c6d8b96c9b
parent06eb34e1585c0880d1c3d5ef30b7d1897cc408a6 (diff)
fixed update 7020, it wasn't working with PostgreSQL
http://drupal.org/node/1923454
-rw-r--r--biblio.install4
1 files changed, 2 insertions, 2 deletions
diff --git a/biblio.install b/biblio.install
index 6163384..997f866 100644
--- a/biblio.install
+++ b/biblio.install
@@ -2131,7 +2131,8 @@ function biblio_update_7019() {
* Change the primary key of the biblio_contributor_data table
*/
function biblio_update_7020() {
- db_query("ALTER TABLE {biblio_contributor_data} DROP PRIMARY KEY, ADD PRIMARY KEY (cid)");
+ db_drop_primary_key('biblio_contributor_data');
+ db_add_primary_key('biblio_contributor_data', array('cid'));
}
/**
*
@@ -2183,4 +2184,3 @@ function biblio_update_7023() {
function biblio_update_7024() {
biblio_update_7022();
}
-