summaryrefslogtreecommitdiff
path: root/modules/aggregator/aggregator.install
diff options
context:
space:
mode:
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'));
+}