summaryrefslogtreecommitdiff
path: root/modules/taxonomy/taxonomy.install
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-04-04 13:53:22 +0000
committerDries Buytaert <dries@buytaert.net>2010-04-04 13:53:22 +0000
commitf79a1a735e52c0e8e3a41dd771768fd618ce73d2 (patch)
treebd973d87f5aeca27ca32a9acbbeaa8433179b870 /modules/taxonomy/taxonomy.install
parent77c0c78dd90bb7d26597fabc9d9f3eef938cc752 (diff)
downloadbrdo-f79a1a735e52c0e8e3a41dd771768fd618ce73d2.tar.gz
brdo-f79a1a735e52c0e8e3a41dd771768fd618ce73d2.tar.bz2
- Patch #744258 by sun, jpmckinney, catch: admin/structure/taxonomy paths have to use machine_name(), not vid.
Diffstat (limited to 'modules/taxonomy/taxonomy.install')
-rw-r--r--modules/taxonomy/taxonomy.install4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/taxonomy/taxonomy.install b/modules/taxonomy/taxonomy.install
index 96499e909..c16bdf1a2 100644
--- a/modules/taxonomy/taxonomy.install
+++ b/modules/taxonomy/taxonomy.install
@@ -159,6 +159,9 @@ function taxonomy_schema() {
'indexes' => array(
'list' => array('weight', 'name'),
),
+ 'unique keys' => array(
+ 'machine_name' => array('machine_name'),
+ ),
);
$schema['taxonomy_index'] = array(
@@ -256,6 +259,7 @@ function taxonomy_update_7002() {
);
db_add_field('taxonomy_vocabulary', 'machine_name', $field);
+ db_add_unique_key('taxonomy_vocabulary', 'machine_name', array('machine_name'));
foreach (taxonomy_get_vocabularies() as $vid => $vocabulary) {
$machine_name = 'vocabulary_' . $vid;