From fecd57c8861ebf5d213e1e85581ae4fc88ee0407 Mon Sep 17 00:00:00 2001
From: Andrew Dolgov <fox@bah.spb.su>
Date: Sat, 24 Feb 2007 17:46:39 +0100
Subject: add new-style schema versions and updater

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

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

diff --git a/schema/versions/mysql/4.sql b/schema/versions/mysql/4.sql
new file mode 100644
index 000000000..6dfc5f82f
--- /dev/null
+++ b/schema/versions/mysql/4.sql
@@ -0,0 +1,17 @@
+begin;
+
+alter table ttrss_feeds add column parent_feed integer;
+alter table ttrss_feeds add foreign key (parent_feed) references ttrss_feeds(id) on delete set null;
+
+alter table ttrss_feeds add column private bool;
+
+update ttrss_feeds set private = false;
+
+alter table ttrss_feeds change private private bool not null;
+alter table ttrss_feeds alter column private set default 0;
+
+insert into ttrss_prefs (pref_name,type_id,def_value,short_desc,section_id) values('HIDE_READ_FEEDS', 1, 'false', 'Hide feeds with no unread messages',2);
+
+update ttrss_version set schema_version = 4;
+
+commit;
-- 
cgit v1.2.3

