From 9382ca847f6a6be7458b07ed3accc9e4ddb6bd31 Mon Sep 17 00:00:00 2001
From: Andrew Dolgov <fox@madoka.volgo-balt.ru>
Date: Tue, 29 Mar 2011 11:54:44 +0400
Subject: add ttrss_feeds.mark_unread_on_update, bump schema, cleanup
 ttrss_prefs

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

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

diff --git a/schema/versions/pgsql/83.sql b/schema/versions/pgsql/83.sql
new file mode 100644
index 000000000..4ba7120c1
--- /dev/null
+++ b/schema/versions/pgsql/83.sql
@@ -0,0 +1,19 @@
+begin;
+
+alter table ttrss_feeds add column mark_unread_on_update boolean;
+update ttrss_feeds set mark_unread_on_update = false;
+alter table ttrss_feeds alter column mark_unread_on_update set not null;
+alter table ttrss_feeds alter column mark_unread_on_update set default false;
+
+alter table ttrss_feeds add column strip_images boolean;
+update ttrss_feeds set strip_images = false;
+alter table ttrss_feeds alter column strip_images set not null;
+alter table ttrss_feeds alter column strip_images set default false;
+
+DELETE FROM ttrss_user_prefs WHERE pref_name IN ('HIDE_FEEDLIST', 'SYNC_COUNTERS', 'ENABLE_LABELS', 'ENABLE_SEARCH_TOOLBAR', 'ENABLE_FEED_ICONS', 'ENABLE_OFFLINE_READING', 'EXTENDED_FEEDLIST', 'OPEN_LINKS_IN_NEW_WINDOW', 'ENABLE_FLASH_PLAYER', 'HEADLINES_SMART_DATE', 'MARK_UNREAD_ON_UPDATE');
+
+DELETE FROM ttrss_prefs WHERE pref_name IN ('HIDE_FEEDLIST', 'SYNC_COUNTERS', 'ENABLE_LABELS', 'ENABLE_SEARCH_TOOLBAR', 'ENABLE_FEED_ICONS', 'ENABLE_OFFLINE_READING', 'EXTENDED_FEEDLIST', 'OPEN_LINKS_IN_NEW_WINDOW', 'ENABLE_FLASH_PLAYER', 'HEADLINES_SMART_DATE', 'MARK_UNREAD_ON_UPDATE');
+
+update ttrss_version set schema_version = 83;
+
+commit;
-- 
cgit v1.2.3-54-g00ecf

