From: Andrew Dolgov Date: Sun, 26 Aug 2007 03:34:52 +0000 (+0100) Subject: schema: add cache_images feed option X-Git-Tag: 1.2.15~41 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=fb67e2ba58b08f150c383664c0b6796d56254d5d;p=tt-rss.git schema: add cache_images feed option --- diff --git a/schema/ttrss_schema_mysql.sql b/schema/ttrss_schema_mysql.sql index 1dca0373..5db0814f 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 7688e320..73403eb8 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 568a4391..7b445788 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 568a4391..96e67e4a 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;