]> git.wh0rd.org Git - tt-rss.git/commitdiff
schema: add ttrss_user_entries(unread) index
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Sun, 14 Nov 2010 14:26:26 +0000 (17:26 +0300)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Sun, 14 Nov 2010 14:26:26 +0000 (17:26 +0300)
schema/ttrss_schema_pgsql.sql

index 9c20681ad7ded51c8ba1f0348b5a6da953b4b4a4..3db1390378811cd9d1ec0a3007f17173a3b4cbc6 100644 (file)
@@ -145,9 +145,10 @@ create table ttrss_user_entries (
        unread boolean not null default true);
 
 -- create index ttrss_user_entries_feed_id_index on ttrss_user_entries(feed_id);
--- create index ttrss_user_entries_owner_uid_index on ttrss_user_entries(owner_uid);
+create index ttrss_user_entries_owner_uid_index on ttrss_user_entries(owner_uid);
 create index ttrss_user_entries_ref_id_index on ttrss_user_entries(ref_id);
 create index ttrss_user_entries_feed_id on ttrss_user_entries(feed_id);
+create index ttrss_user_entries_unread_idx on ttrss_user_entries(unread);
 
 create table ttrss_entry_comments (id serial not null primary key,
        ref_id integer not null references ttrss_entries(id) ON DELETE CASCADE,