summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--feedlist.js2
-rw-r--r--sanity_check.php2
-rw-r--r--schema/ttrss_schema_mysql.sql1
-rw-r--r--schema/ttrss_schema_pgsql.sql1
4 files changed, 4 insertions, 2 deletions
diff --git a/feedlist.js b/feedlist.js
index 872709a10..272a6c15e 100644
--- a/feedlist.js
+++ b/feedlist.js
@@ -152,7 +152,7 @@ function viewfeed(feed, subop, is_cat, subop_param, skip_history, offset) {
var unread_ctr = document.getElementById("FEEDU-" + feed);
var cache_check = false;
- if (unread_ctr && !page_offset && !force_nocache) {
+ if (unread_ctr && !page_offset && !force_nocache && !subop) {
unread_ctr = unread_ctr.innerHTML;
var cache_prefix = "";
diff --git a/sanity_check.php b/sanity_check.php
index a8a91b73c..5c90eae74 100644
--- a/sanity_check.php
+++ b/sanity_check.php
@@ -2,7 +2,7 @@
require_once "functions.php";
define('EXPECTED_CONFIG_VERSION', 12);
- define('SCHEMA_VERSION', 26);
+ define('SCHEMA_VERSION', 27);
if (!file_exists("config.php")) {
print __("<b>Fatal Error</b>: You forgot to copy
diff --git a/schema/ttrss_schema_mysql.sql b/schema/ttrss_schema_mysql.sql
index 18f7e0c61..18b159ff1 100644
--- a/schema/ttrss_schema_mysql.sql
+++ b/schema/ttrss_schema_mysql.sql
@@ -76,6 +76,7 @@ create table ttrss_feeds (id integer not null auto_increment primary key,
include_in_digest boolean not null default true,
cache_images boolean not null default false,
auth_pass_encrypted boolean not null default false,
+ last_viewed datetime default null,
index(owner_uid),
foreign key (owner_uid) references ttrss_users(id) ON DELETE CASCADE,
index(cat_id),
diff --git a/schema/ttrss_schema_pgsql.sql b/schema/ttrss_schema_pgsql.sql
index dfb32ca15..bf738aa91 100644
--- a/schema/ttrss_schema_pgsql.sql
+++ b/schema/ttrss_schema_pgsql.sql
@@ -68,6 +68,7 @@ create table ttrss_feeds (id serial not null primary key,
include_in_digest boolean not null default true,
rtl_content boolean not null default false,
cache_images boolean not null default false,
+ last_viewed timestamp default null,
auth_pass_encrypted boolean not null default false);
create index ttrss_feeds_owner_uid_index on ttrss_feeds(owner_uid);