diff --git a/sanity_check.php b/sanity_check.php index f0b9b63a..93a6b0f5 100644 --- a/sanity_check.php +++ b/sanity_check.php @@ -2,7 +2,7 @@ require_once "functions.php"; define('EXPECTED_CONFIG_VERSION', 17); - define('SCHEMA_VERSION', 48); + define('SCHEMA_VERSION', 49); if (!file_exists("config.php")) { print __("Fatal Error: You forgot to copy diff --git a/schema/ttrss_schema_mysql.sql b/schema/ttrss_schema_mysql.sql index 977e56e8..f4d3b38a 100644 --- a/schema/ttrss_schema_mysql.sql +++ b/schema/ttrss_schema_mysql.sql @@ -63,6 +63,7 @@ create table ttrss_counters_cache ( feed_id integer not null, owner_uid integer not null, value integer not null default 0, + updated datetime not null, foreign key (feed_id) references ttrss_feeds(id) ON DELETE CASCADE, foreign key (owner_uid) references ttrss_users(id) ON DELETE CASCADE ); @@ -223,7 +224,7 @@ create table ttrss_tags (id integer primary key auto_increment, create table ttrss_version (schema_version int not null) TYPE=InnoDB; -insert into ttrss_version values (47); +insert into ttrss_version values (49); create table ttrss_enclosures (id serial not null primary key, content_url text not null, diff --git a/schema/ttrss_schema_pgsql.sql b/schema/ttrss_schema_pgsql.sql index 142a70f9..4ea93f97 100644 --- a/schema/ttrss_schema_pgsql.sql +++ b/schema/ttrss_schema_pgsql.sql @@ -88,6 +88,7 @@ insert into ttrss_feeds (owner_uid, title, feed_url) values create table ttrss_counters_cache ( feed_id integer not null references ttrss_feeds(id) ON DELETE CASCADE, owner_uid integer not null references ttrss_users(id) ON DELETE CASCADE, + updated timestamp not null, value integer not null default 0); create table ttrss_entries (id serial not null primary key, @@ -200,7 +201,7 @@ create index ttrss_tags_owner_uid_index on ttrss_tags(owner_uid); create table ttrss_version (schema_version int not null); -insert into ttrss_version values (48); +insert into ttrss_version values (49); create table ttrss_enclosures (id serial not null primary key, content_url text not null,