From 559ccbf305896f696d7589d82bb160b7f86f47bf Mon Sep 17 00:00:00 2001
From: Andrew Dolgov <fox@bah.spb.su>
Date: Sun, 4 Dec 2005 12:51:53 +0100
Subject: add missing column to 1.0.6-1.0.7 upgrade script

---
 schema/upgrade-1.0.6-1.0.7-pgsql.sql | 5 +++++
 1 file changed, 5 insertions(+)

(limited to 'schema/upgrade-1.0.6-1.0.7-pgsql.sql')

diff --git a/schema/upgrade-1.0.6-1.0.7-pgsql.sql b/schema/upgrade-1.0.6-1.0.7-pgsql.sql
index 3048eb91c..7f0cfaacf 100644
--- a/schema/upgrade-1.0.6-1.0.7-pgsql.sql
+++ b/schema/upgrade-1.0.6-1.0.7-pgsql.sql
@@ -2,9 +2,11 @@ begin;
 
 alter table ttrss_feeds add column last_error text;
 alter table ttrss_feeds add column site_url varchar(250);
+alter table ttrss_feeds add column update_interval integer;
 
 update ttrss_feeds set last_error = '';
 update ttrss_feeds set site_url = '';
+update ttrss_feeds set update_interval = 0;
 
 alter table ttrss_feeds alter column last_error set not null;
 alter table ttrss_feeds alter column last_error set default '';
@@ -12,6 +14,9 @@ alter table ttrss_feeds alter column last_error set default '';
 alter table ttrss_feeds alter column site_url set not null;
 alter table ttrss_feeds alter column site_url set default '';
 
+alter table ttrss_feeds alter column update_interval set not null;
+alter table ttrss_feeds alter column update_interval set default 0;
+
 create table ttrss_version (schema_version int not null);
 
 insert into ttrss_version values (1);
-- 
cgit v1.2.3-54-g00ecf

