summaryrefslogtreecommitdiff
path: root/schema/ttrss_schema_mysql.sql
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2005-12-28 19:59:47 +0100
committerAndrew Dolgov <[email protected]>2005-12-28 19:59:47 +0100
commitde99f5005d48a668392ff4bda877854134e0d2f1 (patch)
treeff1ed8884e4b3a7ecee38f3563add4ca854de794 /schema/ttrss_schema_mysql.sql
parent09829e2a32770772fa07ce2eff958dc0050939c0 (diff)
add parent_feed column to ttrss_feeds, create upgrade script for 1.1.1, move out old scripts to schema/obsolete
Diffstat (limited to 'schema/ttrss_schema_mysql.sql')
-rw-r--r--schema/ttrss_schema_mysql.sql5
1 files changed, 4 insertions, 1 deletions
diff --git a/schema/ttrss_schema_mysql.sql b/schema/ttrss_schema_mysql.sql
index 0fa1aa77a..9d79f8a25 100644
--- a/schema/ttrss_schema_mysql.sql
+++ b/schema/ttrss_schema_mysql.sql
@@ -54,10 +54,13 @@ create table ttrss_feeds (id integer not null auto_increment primary key,
site_url varchar(250) not null default '',
auth_login varchar(250) not null default '',
auth_pass varchar(250) not null default '',
+ parent_feed integer default null,
index(owner_uid),
foreign key (owner_uid) references ttrss_users(id) ON DELETE CASCADE,
index(cat_id),
- foreign key (cat_id) references ttrss_feed_categories(id)) TYPE=InnoDB;
+ foreign key (cat_id) references ttrss_feed_categories(id),
+ index(parent_feed),
+ foreign key (parent_feed) references ttrss_feeds(id) ON DELETE SET NULL) TYPE=InnoDB;
insert into ttrss_feeds (owner_uid,title,feed_url) values (1,'Footnotes', 'http://gnomedesktop.org/node/feed');
insert into ttrss_feeds (owner_uid,title,feed_url) values (1,'Latest Linux Kernel Versions','http://kernel.org/kdist/rss.xml');