From c1cd3324e3986967d4210e6e36bf068417b7cd13 Mon Sep 17 00:00:00 2001
From: Andrew Dolgov <noreply@fakecake.org>
Date: Sat, 27 Feb 2021 11:04:25 +0300
Subject: bump schema for ttrss_user_labels2 indexes

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

(limited to 'schema/ttrss_schema_pgsql.sql')

diff --git a/schema/ttrss_schema_pgsql.sql b/schema/ttrss_schema_pgsql.sql
index d7200264a..ca7e8241c 100644
--- a/schema/ttrss_schema_pgsql.sql
+++ b/schema/ttrss_schema_pgsql.sql
@@ -280,7 +280,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 (141);
+insert into ttrss_version values (142);
 
 create table ttrss_enclosures (id serial not null primary key,
 	content_url text not null,
@@ -355,6 +355,9 @@ create table ttrss_user_labels2 (
 	article_id integer not null references ttrss_entries(id) ON DELETE CASCADE
 );
 
+create index ttrss_user_labels2_article_id_idx on ttrss_user_labels2(article_id);
+create index ttrss_user_labels2_label_id_idx on ttrss_user_labels2(label_id);
+
 create table ttrss_access_keys (id serial not null primary key,
 	access_key varchar(250) not null,
 	feed_id varchar(250) not null,
-- 
cgit v1.2.3-54-g00ecf

