1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-16 01:25:55 +00:00

schema: add ttrss_counters_cache

This commit is contained in:
Andrew Dolgov
2008-10-13 14:10:31 +01:00
parent 20be0cf8e7
commit 4d73637869
5 changed files with 33 additions and 3 deletions

View File

@@ -16,6 +16,7 @@ drop table if exists ttrss_entry_comments;
drop table if exists ttrss_user_entries;
drop table if exists ttrss_entries;
drop table if exists ttrss_scheduled_updates;
drop table if exists ttrss_counters_cache;
drop table if exists ttrss_feeds;
drop table if exists ttrss_feed_categories;
drop table if exists ttrss_users;
@@ -57,6 +58,14 @@ create table ttrss_feed_categories(id integer not null primary key auto_incremen
index(owner_uid),
foreign key (owner_uid) references ttrss_users(id) ON DELETE CASCADE) TYPE=InnoDB;
create table ttrss_counters_cache (
feed_id integer not null,
owner_uid integer not null,
value integer not null default 0,
foreign key (feed_id) references ttrss_feeds(id) ON DELETE CASCADE,
foreign key (owner_uid) references ttrss_users(id) ON DELETE CASCADE
);
create table ttrss_feeds (id integer not null auto_increment primary key,
owner_uid integer not null,
title varchar(200) not null,
@@ -210,7 +219,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 (43);
insert into ttrss_version values (44);
create table ttrss_enclosures (id serial not null primary key,
content_url text not null,