schema: add cache_images feed option

This commit is contained in:
Andrew Dolgov 2007-08-26 04:34:52 +01:00
parent 236ac05ce8
commit fb67e2ba58
4 changed files with 12 additions and 0 deletions

View File

@ -71,6 +71,7 @@ create table ttrss_feeds (id integer not null auto_increment primary key,
rtl_content bool not null default false,
hidden bool not null default false,
include_in_digest boolean not null default true,
cache_images boolean not null default false,
auth_pass_encrypted boolean not null default false,
index(owner_uid),
foreign key (owner_uid) references ttrss_users(id) ON DELETE CASCADE,

View File

@ -64,6 +64,7 @@ create table ttrss_feeds (id serial not null primary key,
hidden boolean not null default false,
include_in_digest boolean not null default true,
rtl_content boolean not null default false,
cache_images boolean not null default false,
auth_pass_encrypted boolean not null default false);
create index ttrss_feeds_owner_uid_index on ttrss_feeds(owner_uid);

View File

@ -1,3 +1,8 @@
create index ttrss_entries_date_entered_index on ttrss_entries(date_entered);
alter table ttrss_feeds add column cache_images bool;
update ttrss_feeds set cache_images = false;
alter table ttrss_feeds change cache_images cache_images bool not null;
alter table ttrss_feeds alter column cache_images set default false;
update ttrss_version set schema_version = 22;

View File

@ -1,3 +1,8 @@
create index ttrss_entries_date_entered_index on ttrss_entries(date_entered);
alter table ttrss_feeds add column cache_images boolean;
update ttrss_feeds set cache_images = false;
alter table ttrss_feeds alter column cache_images set not null;
alter table ttrss_feeds alter column cache_images set default false;
update ttrss_version set schema_version = 22;