alter ttrss_counters_cache; bump schema

This commit is contained in:
Andrew Dolgov 2009-01-16 12:48:16 +01:00
parent 33271cd843
commit a1eba24b24
3 changed files with 5 additions and 3 deletions

View file

@ -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 __("<b>Fatal Error</b>: You forgot to copy

View file

@ -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,

View file

@ -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,