From bfd61d3f85d9b2554a016e4c2f711a1285ff8818 Mon Sep 17 00:00:00 2001
From: Andrew Dolgov <fox@madoka.volgo-balt.ru>
Date: Tue, 19 Mar 2013 22:41:10 +0400
Subject: rework STRIP_IMAGES to remove embedding; add per-feed control over
 embedded images (bump schema)

---
 schema/versions/pgsql/106.sql | 12 ++++++++++++
 1 file changed, 12 insertions(+)
 create mode 100644 schema/versions/pgsql/106.sql

(limited to 'schema/versions/pgsql/106.sql')

diff --git a/schema/versions/pgsql/106.sql b/schema/versions/pgsql/106.sql
new file mode 100644
index 000000000..6e3dee2c9
--- /dev/null
+++ b/schema/versions/pgsql/106.sql
@@ -0,0 +1,12 @@
+begin;
+
+update ttrss_prefs set short_desc = 'Do not embed images in articles' where pref_name = 'STRIP_IMAGES';
+
+alter table ttrss_feeds add column hide_images boolean;
+update ttrss_feeds set hide_images = false;
+alter table ttrss_feeds alter column hide_images set not null;
+alter table ttrss_feeds alter column hide_images set default false;
+
+update ttrss_version set schema_version = 106;
+
+commit;
-- 
cgit v1.2.3-54-g00ecf

