schema: add fulltext indexes for mysql to support af_psql_trgm and possibly future fulltext search
This commit is contained in:
parent
9428e2c571
commit
6d98cc6c80
|
@ -6,7 +6,7 @@ class Config {
|
||||||
const T_STRING = 2;
|
const T_STRING = 2;
|
||||||
const T_INT = 3;
|
const T_INT = 3;
|
||||||
|
|
||||||
const SCHEMA_VERSION = 146;
|
const SCHEMA_VERSION = 147;
|
||||||
|
|
||||||
/** override default values, defined below in _DEFAULTS[], prefixing with _ENVVAR_PREFIX:
|
/** override default values, defined below in _DEFAULTS[], prefixing with _ENVVAR_PREFIX:
|
||||||
*
|
*
|
||||||
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
create fulltext index if not exists ttrss_entries_title_search_idx on ttrss_entries(title);
|
||||||
|
create fulltext index if not exists ttrss_entries_combined_search_idx on ttrss_entries(title, content);
|
|
@ -169,6 +169,9 @@ create table ttrss_entries (id integer not null primary key auto_increment,
|
||||||
create index ttrss_entries_date_entered_index on ttrss_entries(date_entered);
|
create index ttrss_entries_date_entered_index on ttrss_entries(date_entered);
|
||||||
create index ttrss_entries_updated_idx on ttrss_entries(updated);
|
create index ttrss_entries_updated_idx on ttrss_entries(updated);
|
||||||
|
|
||||||
|
create fulltext index if not exists ttrss_entries_title_search_idx on ttrss_entries(title);
|
||||||
|
create fulltext index if not exists ttrss_entries_combined_search_idx on ttrss_entries(title, content);
|
||||||
|
|
||||||
create table ttrss_user_entries (
|
create table ttrss_user_entries (
|
||||||
int_id integer not null primary key auto_increment,
|
int_id integer not null primary key auto_increment,
|
||||||
ref_id integer not null,
|
ref_id integer not null,
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
-- no-op, 147 is mysql-specific.
|
||||||
|
-- the following dummy query is added because migration engine doesn't support empty schema files.
|
||||||
|
|
||||||
|
select true;
|
Loading…
Reference in New Issue