From f79a1a735e52c0e8e3a41dd771768fd618ce73d2 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sun, 4 Apr 2010 13:53:22 +0000 Subject: - Patch #744258 by sun, jpmckinney, catch: admin/structure/taxonomy paths have to use machine_name(), not vid. --- modules/taxonomy/taxonomy.install | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'modules') 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; -- cgit v1.2.3