1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 11:05:55 +00:00

add tag cache for user_entries (bump schema)

This commit is contained in:
Andrew Dolgov
2010-11-09 22:41:13 +03:00
parent 38edb1510d
commit 490c366d39
7 changed files with 55 additions and 9 deletions

View File

@@ -151,6 +151,7 @@ create table ttrss_user_entries (
owner_uid integer not null,
marked bool not null default 0,
published bool not null default 0,
tag_cache text not null,
last_read datetime,
score int not null default 0,
note longtext,
@@ -244,7 +245,7 @@ create table ttrss_tags (id integer primary key auto_increment,
create table ttrss_version (schema_version int not null) TYPE=InnoDB DEFAULT CHARSET=UTF8;
insert into ttrss_version values (71);
insert into ttrss_version values (72);
create table ttrss_enclosures (id integer primary key auto_increment,
content_url text not null,

View File

@@ -137,6 +137,7 @@ create table ttrss_user_entries (
owner_uid integer not null references ttrss_users(id) ON DELETE CASCADE,
marked boolean not null default false,
published boolean not null default false,
tag_cache text not null,
last_read timestamp,
score int not null default 0,
note text,
@@ -216,7 +217,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 (71);
insert into ttrss_version values (72);
create table ttrss_enclosures (id serial not null primary key,
content_url text not null,

View File

@@ -0,0 +1,5 @@
alter table ttrss_user_entries add column tag_cache text;
update ttrss_user_entries set tag_cache = '';
alter table ttrss_user_entries change tag_cache tag_cache text not null;
update ttrss_version set schema_version = 72;

View File

@@ -0,0 +1,5 @@
alter table ttrss_user_entries add column tag_cache text;
update ttrss_user_entries set tag_cache = '';
alter table ttrss_user_entries alter column tag_cache set not null;
update ttrss_version set schema_version = 72;