From e04c18a2c29d10184417d853391ae1d2708d4f4f Mon Sep 17 00:00:00 2001
From: Andrew Dolgov <fox@bah.org.ru>
Date: Mon, 28 Dec 2009 17:23:01 +0300
Subject: implement archived articles feed; bump schema

---
 schema/versions/pgsql/60.sql | 12 ++++++++++++
 1 file changed, 12 insertions(+)
 create mode 100644 schema/versions/pgsql/60.sql

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

diff --git a/schema/versions/pgsql/60.sql b/schema/versions/pgsql/60.sql
new file mode 100644
index 000000000..39a2e202b
--- /dev/null
+++ b/schema/versions/pgsql/60.sql
@@ -0,0 +1,12 @@
+begin;
+
+alter table ttrss_user_entries alter column feed_id drop not null;
+
+alter table ttrss_user_entries add column orig_feed_id integer;
+update ttrss_user_entries set orig_feed_id = NULL;
+
+alter table ttrss_user_entries add constraint "$4" FOREIGN KEY (orig_feed_id) REFERENCES ttrss_feeds(id) ON DELETE SET NULL;
+
+update ttrss_version set schema_version = 60;
+
+commit;
-- 
cgit v1.2.3-54-g00ecf

