schema: add cache_images feed option

master
Andrew Dolgov 17 years ago
parent 236ac05ce8
commit fb67e2ba58

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

@ -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);

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

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

Loading…
Cancel
Save