From 4fd52ba4b02b1d77cce6ebb921f9ec6d374fc4aa Mon Sep 17 00:00:00 2001
From: Andrew Dolgov <fox@bah.spb.su>
Date: Sun, 20 Aug 2006 15:02:48 +0100
Subject: schema: add enabled field to ttrss_filters

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

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

diff --git a/schema/upgrade-1.1.7-1.2.2-mysql.sql b/schema/upgrade-1.1.7-1.2.2-mysql.sql
index a82a06269..546adc2d7 100644
--- a/schema/upgrade-1.1.7-1.2.2-mysql.sql
+++ b/schema/upgrade-1.1.7-1.2.2-mysql.sql
@@ -12,6 +12,11 @@ alter table ttrss_users add column last_digest_sent datetime;
 update ttrss_users set last_digest_sent = false;
 alter table ttrss_users alter column last_digest_sent set default null;
 
+alter table ttrss_filters add column enabled bool;
+update ttrss_filters set enabled = true;
+alter table ttrss_filters change enabled enabled bool not null;
+alter table ttrss_filters alter column enabled set default true;
+
 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-54-g00ecf

