summaryrefslogtreecommitdiff
path: root/schema/ttrss_schema_pgsql.sql
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2009-12-28 17:23:01 +0300
committerAndrew Dolgov <[email protected]>2009-12-28 17:23:01 +0300
commite04c18a2c29d10184417d853391ae1d2708d4f4f (patch)
tree9e94e7ce975de92b28aee75e83b9d53764ba3c93 /schema/ttrss_schema_pgsql.sql
parent15ea06910ca9b50d42d8aae96524365594f9aac3 (diff)
implement archived articles feed; bump schema
Diffstat (limited to 'schema/ttrss_schema_pgsql.sql')
-rw-r--r--schema/ttrss_schema_pgsql.sql5
1 files changed, 3 insertions, 2 deletions
diff --git a/schema/ttrss_schema_pgsql.sql b/schema/ttrss_schema_pgsql.sql
index 0b6f719e1..7afebb5d9 100644
--- a/schema/ttrss_schema_pgsql.sql
+++ b/schema/ttrss_schema_pgsql.sql
@@ -121,7 +121,8 @@ create index ttrss_entries_date_entered_index on ttrss_entries(date_entered);
create table ttrss_user_entries (
int_id serial not null primary key,
ref_id integer not null references ttrss_entries(id) ON DELETE CASCADE,
- feed_id int references ttrss_feeds(id) ON DELETE CASCADE not null,
+ feed_id int references ttrss_feeds(id) ON DELETE CASCADE,
+ orig_feed_id int references ttrss_feeds(id) ON DELETE SET NULL,
owner_uid integer not null references ttrss_users(id) ON DELETE CASCADE,
marked boolean not null default false,
published boolean not null default false,
@@ -202,7 +203,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 (59);
+insert into ttrss_version values (60);
create table ttrss_enclosures (id serial not null primary key,
content_url text not null,