From 25ea280502fbb0fb7fc51f355df8fc644dfc994d Mon Sep 17 00:00:00 2001
From: Andrew Dolgov <fox@madoka.volgo-balt.ru>
Date: Wed, 27 Oct 2010 12:05:20 +0400
Subject: add ttrss_entries.date_updated; use date_updated instead of
 date_enered for expiry checking (bump schema)

---
 schema/ttrss_schema_pgsql.sql | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

(limited to 'schema/ttrss_schema_pgsql.sql')

diff --git a/schema/ttrss_schema_pgsql.sql b/schema/ttrss_schema_pgsql.sql
index 7225f10f8..ea5465dac 100644
--- a/schema/ttrss_schema_pgsql.sql
+++ b/schema/ttrss_schema_pgsql.sql
@@ -117,7 +117,8 @@ create table ttrss_entries (id serial not null primary key,
 	content text not null,
 	content_hash varchar(250) not null,
 	no_orig_date boolean not null default false,
-	date_entered timestamp not null default NOW(),
+	date_entered timestamp not null,
+	date_updated timestamp not null,
 	num_comments integer not null default 0,
 	comments varchar(250) not null default '',
 	author varchar(250) not null default '');
@@ -212,7 +213,7 @@ create index ttrss_tags_owner_uid_index on ttrss_tags(owner_uid);
 
 create table ttrss_version (schema_version int not null);
 
-insert into ttrss_version values (66);
+insert into ttrss_version values (67);
 
 create table ttrss_enclosures (id serial not null primary key,
 	content_url text not null,
-- 
cgit v1.2.3

