From 7afb0f019d742c1ada08c800512a60c84fa93952 Mon Sep 17 00:00:00 2001
From: Andrew Dolgov <fox@bah.spb.su>
Date: Sun, 12 Feb 2006 10:59:29 +0100
Subject: move 1.1.1-1.1.2 upgrade scripts to obsolete

---
 schema/obsolete/upgrade-1.1.1-1.1.2-pgsql.sql | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
 create mode 100644 schema/obsolete/upgrade-1.1.1-1.1.2-pgsql.sql

(limited to 'schema/obsolete/upgrade-1.1.1-1.1.2-pgsql.sql')

diff --git a/schema/obsolete/upgrade-1.1.1-1.1.2-pgsql.sql b/schema/obsolete/upgrade-1.1.1-1.1.2-pgsql.sql
new file mode 100644
index 000000000..1f926eaeb
--- /dev/null
+++ b/schema/obsolete/upgrade-1.1.1-1.1.2-pgsql.sql
@@ -0,0 +1,17 @@
+begin;
+
+alter table ttrss_feeds add column parent_feed integer;
+alter table ttrss_feeds add foreign key (parent_feed) references ttrss_feeds(id) on delete set null;
+
+alter table ttrss_feeds add column private boolean;
+
+update ttrss_feeds set private = false;
+
+alter table ttrss_feeds alter column private set not null;
+alter table ttrss_feeds alter column private set default false;
+
+insert into ttrss_prefs (pref_name,type_id,def_value,short_desc,section_id) values('HIDE_READ_FEEDS', 1, 'false', 'Hide feeds with no unread messages',2);
+
+update ttrss_version set schema_version = 4;
+
+commit;
-- 
cgit v1.2.3

