summaryrefslogtreecommitdiff
path: root/modules/aggregator/aggregator.install
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2010-02-26 00:11:58 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2010-02-26 00:11:58 +0000
commit28bca620e10451095b2321a77358384f282caa2b (patch)
tree42d8b701e2e6781ebdbfa8867400684f863e18e2 /modules/aggregator/aggregator.install
parent96b9d512c3e037ded1b076e18fc4b6821e3485a5 (diff)
downloadbrdo-28bca620e10451095b2321a77358384f282caa2b.tar.gz
brdo-28bca620e10451095b2321a77358384f282caa2b.tar.bz2
#578676 follow-up by alex_b: Fix endless adding of non-processed aggregator feeds to queue
Diffstat (limited to 'modules/aggregator/aggregator.install')
-rw-r--r--modules/aggregator/aggregator.install22
1 files changed, 22 insertions, 0 deletions
diff --git a/modules/aggregator/aggregator.install b/modules/aggregator/aggregator.install
index 7985f6a88..bad9bac5a 100644
--- a/modules/aggregator/aggregator.install
+++ b/modules/aggregator/aggregator.install
@@ -143,6 +143,12 @@ function aggregator_schema() {
'default' => 0,
'description' => 'Last time feed was checked for new items, as Unix timestamp.',
),
+ 'queued' => array(
+ 'type' => 'int',
+ 'not null' => TRUE,
+ 'default' => 0,
+ 'description' => 'Time when this feed was queued for refresh, 0 if not queued.',
+ ),
'link' => array(
'type' => 'varchar',
'length' => 255,
@@ -195,6 +201,9 @@ function aggregator_schema() {
'url' => array('url'),
'title' => array('title'),
),
+ 'indexes' => array(
+ 'queued' => array('queued'),
+ ),
);
$schema['aggregator_item'] = array(
@@ -275,3 +284,16 @@ function aggregator_update_7000() {
function aggregator_update_7001() {
variable_set('aggregator_teaser_length', variable_get('teaser_length'));
}
+
+/**
+ * Add queued timestamp.
+ */
+function aggregator_update_7002() {
+ db_add_field('aggregator_feed', 'queued', array(
+ 'type' => 'int',
+ 'not null' => TRUE,
+ 'default' => 0,
+ 'description' => 'Time when this feed was queued for refresh, 0 if not queued.',
+ ));
+ db_add_index('aggregator_feed', 'queued', array('queued'));
+}