mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 13:45:56 +00:00
implement ttrss_feeds.cache_content
This commit is contained in:
@@ -116,6 +116,7 @@ create table ttrss_feeds (id integer not null auto_increment primary key,
|
||||
hidden bool not null default false,
|
||||
include_in_digest boolean not null default true,
|
||||
cache_images boolean not null default false,
|
||||
cache_content boolean not null default false,
|
||||
auth_pass_encrypted boolean not null default false,
|
||||
last_viewed datetime default null,
|
||||
last_update_started datetime default null,
|
||||
@@ -150,6 +151,7 @@ create table ttrss_entries (id integer not null primary key auto_increment,
|
||||
updated datetime not null,
|
||||
content longtext not null,
|
||||
content_hash varchar(250) not null,
|
||||
cached_content longtext,
|
||||
no_orig_date bool not null default 0,
|
||||
date_entered datetime not null,
|
||||
date_updated datetime not null,
|
||||
@@ -306,7 +308,7 @@ create table ttrss_tags (id integer primary key auto_increment,
|
||||
|
||||
create table ttrss_version (schema_version int not null) ENGINE=InnoDB DEFAULT CHARSET=UTF8;
|
||||
|
||||
insert into ttrss_version values (98);
|
||||
insert into ttrss_version values (99);
|
||||
|
||||
create table ttrss_enclosures (id integer primary key auto_increment,
|
||||
content_url text not null,
|
||||
|
||||
@@ -78,6 +78,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,
|
||||
cache_content boolean not null default false,
|
||||
last_viewed timestamp default null,
|
||||
last_update_started timestamp default null,
|
||||
update_method integer not null default 0,
|
||||
@@ -130,6 +131,7 @@ create table ttrss_entries (id serial not null primary key,
|
||||
updated timestamp not null,
|
||||
content text not null,
|
||||
content_hash varchar(250) not null,
|
||||
cached_content text,
|
||||
no_orig_date boolean not null default false,
|
||||
date_entered timestamp not null,
|
||||
date_updated timestamp not null,
|
||||
@@ -254,7 +256,7 @@ create index ttrss_tags_post_int_id_idx on ttrss_tags(post_int_id);
|
||||
|
||||
create table ttrss_version (schema_version int not null);
|
||||
|
||||
insert into ttrss_version values (98);
|
||||
insert into ttrss_version values (99);
|
||||
|
||||
create table ttrss_enclosures (id serial not null primary key,
|
||||
content_url text not null,
|
||||
|
||||
12
schema/versions/mysql/99.sql
Normal file
12
schema/versions/mysql/99.sql
Normal file
@@ -0,0 +1,12 @@
|
||||
begin;
|
||||
|
||||
alter table ttrss_feeds add column cache_content bool;
|
||||
update ttrss_feeds set cache_content = false;
|
||||
alter table ttrss_feeds change cache_content cache_content bool not null;
|
||||
alter table ttrss_feeds alter column cache_content set default false;
|
||||
|
||||
alter table ttrss_entries add column cached_content longtext;
|
||||
|
||||
update ttrss_version set schema_version = 99;
|
||||
|
||||
commit;
|
||||
12
schema/versions/pgsql/99.sql
Normal file
12
schema/versions/pgsql/99.sql
Normal file
@@ -0,0 +1,12 @@
|
||||
begin;
|
||||
|
||||
alter table ttrss_feeds add column cache_content boolean;
|
||||
update ttrss_feeds set cache_content = false;
|
||||
alter table ttrss_feeds alter column cache_content set not null;
|
||||
alter table ttrss_feeds alter column cache_content set default false;
|
||||
|
||||
alter table ttrss_entries add column cached_content text;
|
||||
|
||||
update ttrss_version set schema_version = 99;
|
||||
|
||||
commit;
|
||||
Reference in New Issue
Block a user