1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2026-01-03 00:09:14 +00:00

schema: set cat_id in ttrss_feeds to null when category is deleted

This commit is contained in:
Andrew Dolgov
2008-01-21 04:27:42 +01:00
parent 3b9e5af4b9
commit f0907182c6
2 changed files with 2 additions and 2 deletions

View File

@@ -80,7 +80,7 @@ create table ttrss_feeds (id integer not null auto_increment primary key,
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),
foreign key (cat_id) references ttrss_feed_categories(id) ON DELETE SET NULL,
index(parent_feed),
foreign key (parent_feed) references ttrss_feeds(id) ON DELETE SET NULL) TYPE=InnoDB;