schema: updates for new filter format (bump version to 131)
This commit is contained in:
parent
57a1143c9d
commit
10a1f28f7c
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
define('EXPECTED_CONFIG_VERSION', 26);
|
||||
define('SCHEMA_VERSION', 130);
|
||||
define('SCHEMA_VERSION', 131);
|
||||
|
||||
define('LABEL_BASE_INDEX', -1024);
|
||||
define('PLUGIN_FEED_BASE_INDEX', -128);
|
||||
|
|
|
@ -252,6 +252,7 @@ create table ttrss_filters2_rules(id integer primary key auto_increment,
|
|||
feed_id integer default null,
|
||||
cat_id integer default null,
|
||||
cat_filter boolean not null default false,
|
||||
match_on text,
|
||||
index (filter_id),
|
||||
foreign key (filter_id) references ttrss_filters2(id) on delete cascade,
|
||||
index (filter_type),
|
||||
|
@ -281,7 +282,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 (130);
|
||||
insert into ttrss_version values (131);
|
||||
|
||||
create table ttrss_enclosures (id integer primary key auto_increment,
|
||||
content_url text not null,
|
||||
|
|
|
@ -246,6 +246,7 @@ create table ttrss_filters2_rules(id serial not null primary key,
|
|||
filter_type integer not null references ttrss_filter_types(id),
|
||||
feed_id integer references ttrss_feeds(id) on delete cascade default null,
|
||||
cat_id integer references ttrss_feed_categories(id) on delete cascade default null,
|
||||
match_on text,
|
||||
cat_filter boolean not null default false);
|
||||
|
||||
create table ttrss_filters2_actions(id serial not null primary key,
|
||||
|
@ -263,7 +264,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 (130);
|
||||
insert into ttrss_version values (131);
|
||||
|
||||
create table ttrss_enclosures (id serial not null primary key,
|
||||
content_url text not null,
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
BEGIN;
|
||||
|
||||
ALTER TABLE ttrss_filters2_rules ADD COLUMN match_on TEXT;
|
||||
|
||||
UPDATE ttrss_version SET schema_version = 131;
|
||||
|
||||
COMMIT;
|
|
@ -0,0 +1,7 @@
|
|||
BEGIN;
|
||||
|
||||
ALTER table ttrss_filters2_rules ADD COLUMN match_on TEXT;
|
||||
|
||||
UPDATE ttrss_version SET schema_version = 131;
|
||||
|
||||
COMMIT;
|
Loading…
Reference in New Issue