diff --git a/modules/aggregator/aggregator.install b/modules/aggregator/aggregator.install index f19d7de..467e234 100644 --- a/modules/aggregator/aggregator.install +++ b/modules/aggregator/aggregator.install @@ -226,10 +226,9 @@ function aggregator_schema() { 'description' => 'The {aggregator_feed}.fid to which this item belongs.', ), 'title' => array( - 'type' => 'varchar', - 'length' => 255, + 'type' => 'text', + 'size' => 'normal', 'not null' => TRUE, - 'default' => '', 'description' => 'Title of the feed item.', ), 'link' => array( @@ -280,6 +279,11 @@ function aggregator_schema() { } /** + * @addtogroup updates-6.x-to-7.x + * @{ + */ + +/** * Add hash column to aggregator_feed table. */ function aggregator_update_7000() { @@ -306,3 +310,30 @@ function aggregator_update_7002() { db_add_index('aggregator_feed', 'queued', array('queued')); } +/** + * @} End of "addtogroup updates-6.x-to-7.x" + */ + +/* + * @defgroup updates-7.x-extra Extra system updates for 7.x + * @{ + */ + +/** + * Update 'title' column of {aggregator_item} to TEXT column type. + */ +function aggregator_update_7003() { + $field_spec = array( + 'type' => 'text', + 'size' => 'normal', + 'not null' => TRUE, + 'description' => 'Title of the feed item.', + ); + + db_change_field('aggregator_item', 'title', 'title', $field_spec); +} + +/* @} End of "defgroup updates-7.x-extra" + * The next series of updates should start at 8000. + */ + diff --git a/modules/aggregator/tests/aggregator_test_rss091.xml b/modules/aggregator/tests/aggregator_test_rss091.xml index 1fd5320..f39a273 100644 --- a/modules/aggregator/tests/aggregator_test_rss091.xml +++ b/modules/aggregator/tests/aggregator_test_rss091.xml @@ -22,7 +22,7 @@ First example feed item description. - Second example feed item title + Second example feed item title. This title is extremely long so that it exceeds the 255 character limit for titles in feed item storage. In fact it's so long that this sentence isn't long enough so I'm rambling a bit to make it longer, nearly there now. Ah now it's long enough so I'll shut up. http://example.com/example-turns-two Second example feed item description.