diff --git a/core/modules/aggregator/aggregator.install b/core/modules/aggregator/aggregator.install index 768f45b..23e26c0 100644 --- a/core/modules/aggregator/aggregator.install +++ b/core/modules/aggregator/aggregator.install @@ -247,38 +247,3 @@ function aggregator_update_8002() { db_add_index('aggregator_item', 'timestamp', array('timestamp')); } } - -/** - * Create a UUID column for aggregator feeds. - */ -function aggregator_update_8003() { - $spec = array( - 'description' => 'Unique Key: Universally unique identifier for this entity.', - 'type' => 'varchar', - 'length' => 128, - 'not null' => FALSE, - ); - $keys = array( - 'unique keys' => array( - 'uuid' => array('uuid'), - ), - ); - - db_add_field('aggregator_feed', 'uuid', $spec, $keys); -} - -/** - * Generate a UUID for all aggregator feeds. - */ -function aggregator_update_8004(&$sandbox) { - if (!isset($sandbox['progress'])) { - $sandbox['progress'] = 0; - $sandbox['last'] = 0; - $sandbox['max'] = db_query('SELECT COUNT(fid) FROM {aggregator_feed} WHERE uuid IS NULL')->fetchField(); - } - - $ids = db_query_range('SELECT fid FROM {aggregator_feed} WHERE fid > :fid AND uuid IS NULL ORDER BY fid ASC', 0, 10, array(':fid' => $sandbox['last']))->fetchCol(); - update_add_uuids($sandbox, 'aggregator_feed', 'fid', $ids); - - $sandbox['#finished'] = empty($sandbox['max']) ? 1 : ($sandbox['progress'] / $sandbox['max']); -}