ttrss_feed_categories are now uid-aware

This commit is contained in:
Andrew Dolgov 2005-11-23 06:36:28 +01:00
parent 4a9a8bd884
commit 5a214f9d68
2 changed files with 5 additions and 1 deletions

View file

@ -21,7 +21,10 @@ create table ttrss_users (id integer primary key not null auto_increment,
insert into ttrss_users (login,pwd_hash,access_level) values ('admin', 'password', 10); insert into ttrss_users (login,pwd_hash,access_level) values ('admin', 'password', 10);
create table ttrss_feed_categories(id integer not null primary key, create table ttrss_feed_categories(id integer not null primary key,
title varchar(200) not null); owner_uid integer not null,
title varchar(200) not null,
index(owner_uid),
foreign key (owner_uid) references ttrss_users(id) ON DELETE CASCADE);
create table ttrss_feeds (id integer not null auto_increment primary key, create table ttrss_feeds (id integer not null auto_increment primary key,
owner_uid integer not null, owner_uid integer not null,

View file

@ -21,6 +21,7 @@ create table ttrss_users (id serial not null primary key,
insert into ttrss_users (login,pwd_hash,access_level) values ('admin', 'password', 10); insert into ttrss_users (login,pwd_hash,access_level) values ('admin', 'password', 10);
create table ttrss_feed_categories(id serial not null primary key, create table ttrss_feed_categories(id serial not null primary key,
owner_uid integer not null references ttrss_users(id) on delete cascade,
title varchar(200) not null); title varchar(200) not null);
create table ttrss_feeds (id serial not null primary key, create table ttrss_feeds (id serial not null primary key,