summaryrefslogtreecommitdiff
path: root/schema/ttrss_schema_mysql.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_mysql.sql
parent15ea06910ca9b50d42d8aae96524365594f9aac3 (diff)
implement archived articles feed; bump schema
Diffstat (limited to 'schema/ttrss_schema_mysql.sql')
-rw-r--r--schema/ttrss_schema_mysql.sql7
1 files changed, 5 insertions, 2 deletions
diff --git a/schema/ttrss_schema_mysql.sql b/schema/ttrss_schema_mysql.sql
index 95edaffdd..c6de60287 100644
--- a/schema/ttrss_schema_mysql.sql
+++ b/schema/ttrss_schema_mysql.sql
@@ -133,7 +133,8 @@ create index ttrss_entries_date_entered_index on ttrss_entries(date_entered);
create table ttrss_user_entries (
int_id integer not null primary key auto_increment,
ref_id integer not null,
- feed_id int not null,
+ feed_id int,
+ orig_feed_id int,
owner_uid integer not null,
marked bool not null default 0,
published bool not null default 0,
@@ -145,6 +146,8 @@ create table ttrss_user_entries (
foreign key (ref_id) references ttrss_entries(id) ON DELETE CASCADE,
index (feed_id),
foreign key (feed_id) references ttrss_feeds(id) ON DELETE CASCADE,
+ index (orig_feed_id),
+ foreign key (orig_feed_id) references ttrss_feeds(id) ON DELETE SET NULL,
index (owner_uid),
foreign key (owner_uid) references ttrss_users(id) ON DELETE CASCADE) TYPE=InnoDB;
@@ -226,7 +229,7 @@ create table ttrss_tags (id integer primary key auto_increment,
create table ttrss_version (schema_version int not null) TYPE=InnoDB;
-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,