bump schema for ttrss_user_labels2 indexes

master
Andrew Dolgov 2 years ago
parent 6d06450649
commit c1cd3324e3
  1. 2
      include/functions.php
  2. 5
      schema/ttrss_schema_mysql.sql
  3. 5
      schema/ttrss_schema_pgsql.sql
  4. 4
      schema/versions/mysql/142.sql
  5. 4
      schema/versions/pgsql/142.sql

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

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

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

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

@ -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;
Loading…
Cancel
Save