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

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

diff --git a/schema/versions/pgsql/93.sql b/schema/versions/pgsql/93.sql
new file mode 100644
index 000000000..0374c0b0a
--- /dev/null
+++ b/schema/versions/pgsql/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 constraint "$2" 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

