From fb67e2ba58b08f150c383664c0b6796d56254d5d Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sun, 26 Aug 2007 04:34:52 +0100 Subject: [PATCH] schema: add cache_images feed option --- schema/ttrss_schema_mysql.sql | 1 + schema/ttrss_schema_pgsql.sql | 1 + schema/versions/mysql/22.sql | 5 +++++ schema/versions/pgsql/22.sql | 5 +++++ 4 files changed, 12 insertions(+) diff --git a/schema/ttrss_schema_mysql.sql b/schema/ttrss_schema_mysql.sql index 1dca03732..5db0814f2 100644 --- a/schema/ttrss_schema_mysql.sql +++ b/schema/ttrss_schema_mysql.sql @@ -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, diff --git a/schema/ttrss_schema_pgsql.sql b/schema/ttrss_schema_pgsql.sql index 7688e3202..73403eb82 100644 --- a/schema/ttrss_schema_pgsql.sql +++ b/schema/ttrss_schema_pgsql.sql @@ -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); diff --git a/schema/versions/mysql/22.sql b/schema/versions/mysql/22.sql index 568a4391f..7b4457887 100644 --- a/schema/versions/mysql/22.sql +++ b/schema/versions/mysql/22.sql @@ -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; diff --git a/schema/versions/pgsql/22.sql b/schema/versions/pgsql/22.sql index 568a4391f..96e67e4a0 100644 --- a/schema/versions/pgsql/22.sql +++ b/schema/versions/pgsql/22.sql @@ -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;