From 5b35b4de9bb6aea6e61297bad1e4b89c0b037fcc Mon Sep 17 00:00:00 2001
From: Andrew Dolgov <fox@bah.spb.su>
Date: Fri, 30 Dec 2005 04:05:01 +0100
Subject: ttrss_feeds: add private column to hide from browser

---
 schema/upgrade-1.1.1-1.1.2-mysql.sql | 7 +++++++
 1 file changed, 7 insertions(+)

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

diff --git a/schema/upgrade-1.1.1-1.1.2-mysql.sql b/schema/upgrade-1.1.1-1.1.2-mysql.sql
index a889e5c1c..d6c8a522d 100644
--- a/schema/upgrade-1.1.1-1.1.2-mysql.sql
+++ b/schema/upgrade-1.1.1-1.1.2-mysql.sql
@@ -3,6 +3,13 @@ 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 bool;
+
+update ttrss_feeds set private = false;
+
+alter table ttrss_feeds change private private bool not null;
+alter table ttrss_feeds alter column private set default 0;
+
 update ttrss_version set schema_version = 4;
 
 commit;
-- 
cgit v1.2.3

