1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 05:15:55 +00:00

add composite key on ttrss_feeds (feed_url & owner_uid)

This commit is contained in:
Andrew Dolgov
2019-03-10 15:45:30 +03:00
parent 95e70320a6
commit 32f9fda33d
5 changed files with 21 additions and 5 deletions

View File

@@ -99,7 +99,8 @@ create table ttrss_feeds (id serial not null primary key,
pubsub_state integer not null default 0,
favicon_last_checked timestamp default null,
feed_language varchar(100) not null default '',
auth_pass_encrypted boolean not null default false);
auth_pass_encrypted boolean not null default false,
unique(feed_url, owner_uid));
create index ttrss_feeds_owner_uid_index on ttrss_feeds(owner_uid);
create index ttrss_feeds_cat_id_idx on ttrss_feeds(cat_id);
@@ -268,7 +269,7 @@ create index ttrss_tags_post_int_id_idx on ttrss_tags(post_int_id);
create table ttrss_version (schema_version int not null);
insert into ttrss_version values (136);
insert into ttrss_version values (137);
create table ttrss_enclosures (id serial not null primary key,
content_url text not null,