diff --git a/taxonomy_title.install b/taxonomy_title.install index 8fb569f..34dc5e8 100644 --- a/taxonomy_title.install +++ b/taxonomy_title.install @@ -1,4 +1,4 @@ - array( 'tid' => array( 'type' => 'int', - 'length' => '11', 'unsigned' => TRUE, 'default' => 0, 'not null' => TRUE, @@ -39,3 +38,16 @@ function taxonomy_title_schema() { return $schema; } + +/** + * Implements hook_update_N(). Remove length from tid field in database. + */ +function taxonomy_title_update_7001() { + $spec = array( + 'type' => 'int', + 'unsigned' => TRUE, + 'default' => 0, + 'not null' => TRUE, + ); + db_change_field('taxonomy_title', 'tid', 'tid', $spec); +}