1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 19:15:56 +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

@@ -52,7 +52,7 @@ create table ttrss_feed_categories(id serial not null primary key,
create table ttrss_feeds (id serial not null primary key,
owner_uid integer not null references ttrss_users(id) on delete cascade,
title varchar(200) not null,
cat_id integer references ttrss_feed_categories(id) default null,
cat_id integer default null references ttrss_feed_categories(id) on delete set null,
feed_url varchar(250) not null,
icon_url varchar(250) not null default '',
update_interval integer not null default 0,