diff options
author | Dries Buytaert <dries@buytaert.net> | 2010-04-04 13:53:22 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2010-04-04 13:53:22 +0000 |
commit | f79a1a735e52c0e8e3a41dd771768fd618ce73d2 (patch) | |
tree | bd973d87f5aeca27ca32a9acbbeaa8433179b870 /modules/taxonomy/taxonomy.install | |
parent | 77c0c78dd90bb7d26597fabc9d9f3eef938cc752 (diff) | |
download | brdo-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.install | 4 |
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; |