From ba975b2ec7d20d1e841b1f9fdc1a571317aca3eb Mon Sep 17 00:00:00 2001
From: Andrew Dolgov <fox@madoka.volgo-balt.ru>
Date: Tue, 27 Dec 2011 12:52:33 +0400
Subject: implement filtering by category (closes #386)

---
 schema/versions/mysql/87.sql | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
 create mode 100644 schema/versions/mysql/87.sql

(limited to 'schema/versions/mysql/87.sql')

diff --git a/schema/versions/mysql/87.sql b/schema/versions/mysql/87.sql
new file mode 100644
index 000000000..b5acceaf7
--- /dev/null
+++ b/schema/versions/mysql/87.sql
@@ -0,0 +1,14 @@
+begin;
+
+alter table ttrss_filters add column cat_filter bool;
+update ttrss_filters set cat_filter = true;
+alter table ttrss_filters change cat_filter cat_filter bool not null;
+alter table ttrss_filters alter column cat_filter set default false;
+
+alter table ttrss_filters add column cat_id integer;
+
+alter table ttrss_filters add FOREIGN KEY (cat_id) REFERENCES ttrss_feed_categories(id) ON DELETE CASCADE;
+
+update ttrss_version set schema_version = 87;
+
+commit;
-- 
cgit v1.2.3

