bump schema for ttrss_user_labels2 indexes
This commit is contained in:
parent
6d06450649
commit
c1cd3324e3
|
@ -1,5 +1,5 @@
|
||||||
<?php
|
<?php
|
||||||
define('SCHEMA_VERSION', 141);
|
define('SCHEMA_VERSION', 142);
|
||||||
|
|
||||||
define('LABEL_BASE_INDEX', -1024);
|
define('LABEL_BASE_INDEX', -1024);
|
||||||
define('PLUGIN_FEED_BASE_INDEX', -128);
|
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;
|
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,
|
create table ttrss_enclosures (id integer primary key auto_increment,
|
||||||
content_url text not null,
|
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
|
foreign key (article_id) references ttrss_entries(id) ON DELETE CASCADE
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=UTF8;
|
) 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,
|
create table ttrss_access_keys (id integer not null primary key auto_increment,
|
||||||
access_key varchar(250) not null,
|
access_key varchar(250) not null,
|
||||||
feed_id 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);
|
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,
|
create table ttrss_enclosures (id serial not null primary key,
|
||||||
content_url text not null,
|
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
|
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,
|
create table ttrss_access_keys (id serial not null primary key,
|
||||||
access_key varchar(250) not null,
|
access_key varchar(250) not null,
|
||||||
feed_id 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…
Reference in New Issue