From 9432bfa076738b47fce25c4a5a3293201bf21099 Mon Sep 17 00:00:00 2001
From: Andrew Dolgov <fox@madoka.volgo-balt.ru>
Date: Mon, 13 Aug 2012 14:36:52 +0400
Subject: add ttrss_feed_categories.parent_cat, bump schema

---
 schema/ttrss_schema_mysql.sql | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

(limited to 'schema/ttrss_schema_mysql.sql')

diff --git a/schema/ttrss_schema_mysql.sql b/schema/ttrss_schema_mysql.sql
index 5e6ca6096..3f63d44ee 100644
--- a/schema/ttrss_schema_mysql.sql
+++ b/schema/ttrss_schema_mysql.sql
@@ -57,6 +57,9 @@ create table ttrss_feed_categories(id integer not null primary key auto_incremen
 	title varchar(200) not null,
 	collapsed bool not null default false,
 	order_id integer not null default 0,
+	parent_cat integer,
+	index(parent_cat),
+	foreign key (parent_cat) references ttrss_feed_categories(id) ON DELETE SET NULL,
 	index(owner_uid),
 	foreign key (owner_uid) references ttrss_users(id) ON DELETE CASCADE) ENGINE=InnoDB DEFAULT CHARSET=UTF8;
 
@@ -267,7 +270,7 @@ create table ttrss_tags (id integer primary key auto_increment,
 
 create table ttrss_version (schema_version int not null) ENGINE=InnoDB DEFAULT CHARSET=UTF8;
 
-insert into ttrss_version values (92);
+insert into ttrss_version values (93);
 
 create table ttrss_enclosures (id integer primary key auto_increment,
 	content_url text not null,
-- 
cgit v1.2.3

