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

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

diff --git a/schema/versions/pgsql/6.sql b/schema/versions/pgsql/6.sql
new file mode 100644
index 000000000..6c406495d
--- /dev/null
+++ b/schema/versions/pgsql/6.sql
@@ -0,0 +1,24 @@
+begin;
+
+alter table ttrss_entries add column author varchar(250);
+
+update ttrss_entries set author = '';
+
+alter table ttrss_entries alter column author set not null;
+alter table ttrss_entries alter column author set default '';
+
+create table ttrss_sessions (id varchar(250) unique not null primary key,
+	data text,
+	expire integer not null,
+	ip_address varchar(15) not null default '');
+
+create index ttrss_sessions_id_index on ttrss_sessions(id);
+create index ttrss_sessions_expire_index on ttrss_sessions(expire);
+
+delete from ttrss_prefs where pref_name = 'ENABLE_SPLASH';
+
+insert into ttrss_prefs (pref_name,type_id,def_value,short_desc,section_id) values('OPEN_LINKS_IN_NEW_WINDOW', 1, 'true', 'Open article links in new browser window',2);
+
+update ttrss_version set schema_version = 6;
+
+commit;
-- 
cgit v1.2.3

