From 5a214f9d683cf76f4cd24e873ce3ae1c7a704ff5 Mon Sep 17 00:00:00 2001
From: Andrew Dolgov <fox@madoka.spb.ru>
Date: Wed, 23 Nov 2005 06:36:28 +0100
Subject: ttrss_feed_categories are now uid-aware

---
 schema/ttrss_schema_mysql.sql | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

(limited to 'schema/ttrss_schema_mysql.sql')

diff --git a/schema/ttrss_schema_mysql.sql b/schema/ttrss_schema_mysql.sql
index 33c65bf49..44c30eab6 100644
--- a/schema/ttrss_schema_mysql.sql
+++ b/schema/ttrss_schema_mysql.sql
@@ -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);
 
 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,
 	owner_uid integer not null,
-- 
cgit v1.2.3-54-g00ecf

