diff options
author | Dries Buytaert <dries@buytaert.net> | 2010-09-04 15:40:52 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2010-09-04 15:40:52 +0000 |
commit | 9502260ecf33a4b345794eea2d0b6e6dff5dbd74 (patch) | |
tree | 26612164dfc6fef6089a6774df81e6dc3157887d /modules/taxonomy/taxonomy.install | |
parent | 47326c49cbac1765a804c7c2166244148dc52401 (diff) | |
download | brdo-9502260ecf33a4b345794eea2d0b6e6dff5dbd74.tar.gz brdo-9502260ecf33a4b345794eea2d0b6e6dff5dbd74.tar.bz2 |
- Patch #902264 by Damien Tournoud: move hook_field_schema() to .install files so we can get the upgrade path to work.
Diffstat (limited to 'modules/taxonomy/taxonomy.install')
-rw-r--r-- | modules/taxonomy/taxonomy.install | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/modules/taxonomy/taxonomy.install b/modules/taxonomy/taxonomy.install index cc2512206..86171b77d 100644 --- a/modules/taxonomy/taxonomy.install +++ b/modules/taxonomy/taxonomy.install @@ -222,6 +222,24 @@ function taxonomy_schema() { } /** + * Implements hook_field_schema(). + */ +function taxonomy_field_schema($field) { + return array( + 'columns' => array( + 'tid' => array( + 'type' => 'int', + 'unsigned' => TRUE, + 'not null' => FALSE, + ), + ), + 'indexes' => array( + 'tid' => array('tid'), + ), + ); +} + +/** * Implements hook_update_dependencies(). */ function taxonomy_update_dependencies() { |