Skip to content

Instantly share code, notes, and snippets.

@xendk
Created May 11, 2012 07:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xendk/2658245 to your computer and use it in GitHub Desktop.
Save xendk/2658245 to your computer and use it in GitHub Desktop.
Sql fix for metatags-quick
diff --git a/metatags_quick.install b/metatags_quick.install
index 71f2821..555604a 100644
--- a/metatags_quick.install
+++ b/metatags_quick.install
@@ -30,7 +30,10 @@ function metatags_quick_schema() {
'description' => 'Language code',
),
),
- 'primary key' => array('id', 'path', 'lang',),
+ 'primary key' => array('id'),
+ 'unique keys' => array(
+ 'path_lang' => array('lang', 'path'),
+ ),
);
return $schema;
}
@@ -99,4 +102,4 @@ function metatags_quick_update_7003() {
db_drop_field('metatags_quick_path_based', 'fid');
db_drop_field('metatags_quick_path_based', 'value');
}
-}
\ No newline at end of file
+}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment