From ee0bc6edd9e744790e70233e16e7eea290bcf5cc 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/versions/mysql/93.sql | 10 ++++++++++
 1 file changed, 10 insertions(+)
 create mode 100644 schema/versions/mysql/93.sql

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

diff --git a/schema/versions/mysql/93.sql b/schema/versions/mysql/93.sql
new file mode 100644
index 000000000..56b96e3b5
--- /dev/null
+++ b/schema/versions/mysql/93.sql
@@ -0,0 +1,10 @@
+begin;
+
+alter table ttrss_feed_categories add column parent_cat integer;
+update ttrss_feed_categories set parent_cat = NULL;
+
+alter table ttrss_feed_categories add FOREIGN KEY (parent_cat) REFERENCES ttrss_feed_categories(id) ON DELETE SET NULL;
+
+update ttrss_version set schema_version = 93;
+
+commit;
-- 
cgit v1.2.3-54-g00ecf

