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

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

diff --git a/schema/versions/mysql/7.sql b/schema/versions/mysql/7.sql
new file mode 100644
index 000000000..bee135989
--- /dev/null
+++ b/schema/versions/mysql/7.sql
@@ -0,0 +1,19 @@
+alter table ttrss_feeds add column rtl_content bool;
+
+update ttrss_feeds set rtl_content = false;
+
+alter table ttrss_feeds change rtl_content rtl_content bool not null;
+alter table ttrss_feeds alter column rtl_content set default false;
+
+delete from ttrss_user_prefs where pref_name = 'DISPLAY_FEEDLIST_ACTIONS';
+delete from ttrss_prefs where pref_name = 'DISPLAY_FEEDLIST_ACTIONS';
+
+delete from ttrss_user_prefs where pref_name = 'ENABLE_PREFS_CATCHUP_UNCATCHUP';
+delete from ttrss_prefs where pref_name = 'ENABLE_PREFS_CATCHUP_UNCATCHUP';
+
+alter table ttrss_sessions drop column ip_address;
+
+alter table ttrss_filters drop column description;
+ 
+update ttrss_version set schema_version = 7;
+
-- 
cgit v1.2.3

