summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorValery L. Lourie2012-12-23 06:18:29 (GMT)
committer Valery L. Lourie2012-12-23 06:18:29 (GMT)
commit420b5721ffbfa57edfa410382a7179168844dd60 (patch)
treec4647e35493f02bade593aa590ecafdebb11b8f1
parent8adcd85dd0cb14b6256e216ff21ffac0b3dbd583 (diff)
Issue #1732436 by valthebald: perform mysql-specific key altering only for mysql installations
-rw-r--r--metatags_quick.install4
1 files changed, 3 insertions, 1 deletions
diff --git a/metatags_quick.install b/metatags_quick.install
index 2db27a0..e3617df 100644
--- a/metatags_quick.install
+++ b/metatags_quick.install
@@ -118,7 +118,9 @@ function metatags_quick_update_7004() {
* first place, that's irrelevant. PostgreSQL seems to support the same
* syntax, so it should work.
*/
- db_query('ALTER TABLE {metatags_quick_path_based} DROP PRIMARY KEY, ADD PRIMARY KEY (`id`)');
+ if (db_driver() == 'mysql') {
+ db_query('ALTER TABLE {metatags_quick_path_based} DROP PRIMARY KEY, ADD PRIMARY KEY (`id`)');
+ }
if (!db_index_exists('metatags_quick_path_based', 'lang_path')) {
db_add_unique_key('metatags_quick_path_based', 'lang_path', array('lang', 'path'));
}