diff options
author | Andrew Dolgov <[email protected]> | 2009-12-28 19:15:15 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2009-12-28 19:15:15 +0300 |
commit | 24902606eb47debce37ff1ee68b0a668d224d966 (patch) | |
tree | b8454ae83a090bee3bdbbc63ef3e545d4b9babd8 /schema/ttrss_schema_mysql.sql | |
parent | dbfc43651935533c07244257225926b6a120518f (diff) |
add ttrss_archived_feeds (MODIFY SCHEMA v60)
Diffstat (limited to 'schema/ttrss_schema_mysql.sql')
-rw-r--r-- | schema/ttrss_schema_mysql.sql | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/schema/ttrss_schema_mysql.sql b/schema/ttrss_schema_mysql.sql index c6de60287..68611c94e 100644 --- a/schema/ttrss_schema_mysql.sql +++ b/schema/ttrss_schema_mysql.sql @@ -22,6 +22,7 @@ drop table if exists ttrss_scheduled_updates; drop table if exists ttrss_counters_cache; drop table if exists ttrss_cat_counters_cache; drop table if exists ttrss_feeds; +drop table if exists ttrss_archived_feeds; drop table if exists ttrss_feed_categories; drop table if exists ttrss_users; drop table if exists ttrss_themes; @@ -62,6 +63,14 @@ create table ttrss_feed_categories(id integer not null primary key auto_incremen index(owner_uid), foreign key (owner_uid) references ttrss_users(id) ON DELETE CASCADE) TYPE=InnoDB; +create table ttrss_archived_feeds (id integer not null primary key, + owner_uid integer not null, + title varchar(200) not null, + feed_url text not null, + site_url varchar(250) not null default '', + index(owner_uid), + foreign key (owner_uid) references ttrss_users(id) ON DELETE CASCADE) TYPE=InnoDB; + create table ttrss_counters_cache ( feed_id integer not null, owner_uid integer not null, @@ -147,7 +156,7 @@ create table ttrss_user_entries ( 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, + foreign key (orig_feed_id) references ttrss_archived_feeds(id) ON DELETE SET NULL, index (owner_uid), foreign key (owner_uid) references ttrss_users(id) ON DELETE CASCADE) TYPE=InnoDB; |