]> git.wh0rd.org - tt-rss.git/commitdiff
add ttrss_feeds_cat_id_idx
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 11 Jul 2012 08:52:59 +0000 (12:52 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 11 Jul 2012 08:52:59 +0000 (12:52 +0400)
schema/ttrss_schema_mysql.sql
schema/ttrss_schema_pgsql.sql

index cbbbc64ab8b0d2121feb65447062672df72c4b3e..5e6ca6096ee401dc1131b70364f46951ae2cb879 100644 (file)
@@ -127,6 +127,9 @@ create table ttrss_feeds (id integer not null auto_increment primary key,
        index(parent_feed),
        foreign key (parent_feed) references ttrss_feeds(id) ON DELETE SET NULL) ENGINE=InnoDB DEFAULT CHARSET=UTF8;
 
+create index ttrss_feeds_owner_uid_index on ttrss_feeds(owner_uid);
+create index ttrss_feeds_cat_id_idx on ttrss_feeds(cat_id);
+
 insert into ttrss_feeds (owner_uid, title, feed_url) values
        (1, 'Tiny Tiny RSS: New Releases', 'http://tt-rss.org/releases.rss');
 
index 74faa1a06a3af515c7a80b97c5d415da5e3df5e2..3e0d800c91c296e46a1c21f7864c983a41edab6a 100644 (file)
@@ -86,6 +86,7 @@ create table ttrss_feeds (id serial not null primary key,
        auth_pass_encrypted boolean not null default false);
 
 create index ttrss_feeds_owner_uid_index on ttrss_feeds(owner_uid);
+create index ttrss_feeds_cat_id_idx on ttrss_feeds(cat_id);
 
 insert into ttrss_feeds (owner_uid, title, feed_url) values
        (1, 'Tiny Tiny RSS: New Releases', 'http://tt-rss.org/releases.rss');