bump schema for ttrss_user_labels2 indexes

This commit is contained in:
Andrew Dolgov 2021-02-27 11:04:25 +03:00
parent 6d06450649
commit c1cd3324e3
5 changed files with 17 additions and 3 deletions

View File

@ -1,5 +1,5 @@
<?php
define('SCHEMA_VERSION', 141);
define('SCHEMA_VERSION', 142);
define('LABEL_BASE_INDEX', -1024);
define('PLUGIN_FEED_BASE_INDEX', -128);

View File

@ -298,7 +298,7 @@ create table ttrss_tags (id integer primary key auto_increment,
create table ttrss_version (schema_version int not null) ENGINE=InnoDB DEFAULT CHARSET=UTF8;
insert into ttrss_version values (141);
insert into ttrss_version values (142);
create table ttrss_enclosures (id integer primary key auto_increment,
content_url text not null,
@ -373,6 +373,9 @@ create table ttrss_user_labels2 (label_id integer not null,
foreign key (article_id) references ttrss_entries(id) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=UTF8;
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 integer not null primary key auto_increment,
access_key varchar(250) not null,
feed_id varchar(250) not null,

View File

@ -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,

View File

@ -0,0 +1,4 @@
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);
update ttrss_version set schema_version = 142;

View File

@ -0,0 +1,4 @@
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);
update ttrss_version set schema_version = 142;