From 7da377ca8b4668d3e21339531b1ba5d8518b9740 Mon Sep 17 00:00:00 2001
From: Andrew Dolgov <fox@bah.spb.su>
Date: Sun, 13 Aug 2006 12:43:48 +0100
Subject: add hidden field to ttrss_feeds

---
 schema/upgrade-1.1.7-1.2.2-pgsql.sql | 7 +++++++
 1 file changed, 7 insertions(+)

(limited to 'schema/upgrade-1.1.7-1.2.2-pgsql.sql')

diff --git a/schema/upgrade-1.1.7-1.2.2-pgsql.sql b/schema/upgrade-1.1.7-1.2.2-pgsql.sql
index 6180026b8..f651b6a74 100644
--- a/schema/upgrade-1.1.7-1.2.2-pgsql.sql
+++ b/schema/upgrade-1.1.7-1.2.2-pgsql.sql
@@ -1,5 +1,12 @@
 begin;
 
+alter table ttrss_feeds add column hidden boolean;
+
+update ttrss_feeds set hidden = false;
+
+alter table ttrss_feeds alter column hidden set not null;
+alter table ttrss_feeds alter column hidden set default false;
+
 insert into ttrss_prefs (pref_name,type_id,def_value,short_desc,section_id) values('MARK_UNREAD_ON_UPDATE', 1, 'false', 'Set articles as unread on update',3);
 
 insert into ttrss_prefs (pref_name,type_id,def_value,short_desc,section_id) values('REVERSE_HEADLINES', 1, 'false', 'Reverse headline order (oldest first)',2);
-- 
cgit v1.2.3

