schema: add new filter type (refs #225)
This commit is contained in:
parent
3286e486b9
commit
75fa1e3126
|
@ -154,6 +154,8 @@ insert into ttrss_filter_types (id,name,description) values (3, 'both',
|
||||||
'Title or Content');
|
'Title or Content');
|
||||||
insert into ttrss_filter_types (id,name,description) values (4, 'link',
|
insert into ttrss_filter_types (id,name,description) values (4, 'link',
|
||||||
'Link');
|
'Link');
|
||||||
|
insert into ttrss_filter_types (id,name,description) values (5, 'date',
|
||||||
|
'Article Date');
|
||||||
|
|
||||||
create table ttrss_filter_actions (id integer not null primary key,
|
create table ttrss_filter_actions (id integer not null primary key,
|
||||||
name varchar(120) unique not null,
|
name varchar(120) unique not null,
|
||||||
|
@ -219,7 +221,7 @@ create table ttrss_tags (id integer primary key auto_increment,
|
||||||
|
|
||||||
create table ttrss_version (schema_version int not null) TYPE=InnoDB;
|
create table ttrss_version (schema_version int not null) TYPE=InnoDB;
|
||||||
|
|
||||||
insert into ttrss_version values (45);
|
insert into ttrss_version values (46);
|
||||||
|
|
||||||
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,
|
||||||
|
|
|
@ -141,6 +141,8 @@ insert into ttrss_filter_types (id,name,description) values (3, 'both',
|
||||||
'Title or Content');
|
'Title or Content');
|
||||||
insert into ttrss_filter_types (id,name,description) values (4, 'link',
|
insert into ttrss_filter_types (id,name,description) values (4, 'link',
|
||||||
'Link');
|
'Link');
|
||||||
|
insert into ttrss_filter_types (id,name,description) values (5, 'date',
|
||||||
|
'Article Date');
|
||||||
|
|
||||||
create table ttrss_filter_actions (id integer not null primary key,
|
create table ttrss_filter_actions (id integer not null primary key,
|
||||||
name varchar(120) unique not null,
|
name varchar(120) unique not null,
|
||||||
|
@ -196,7 +198,7 @@ create index ttrss_tags_owner_uid_index on ttrss_tags(owner_uid);
|
||||||
|
|
||||||
create table ttrss_version (schema_version int not null);
|
create table ttrss_version (schema_version int not null);
|
||||||
|
|
||||||
insert into ttrss_version values (45);
|
insert into ttrss_version values (46);
|
||||||
|
|
||||||
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,
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
insert into ttrss_filter_types (id,name,description) values (5, 'date',
|
||||||
|
'Article Date');
|
||||||
|
|
||||||
|
update ttrss_version set schema_version = 46;
|
|
@ -0,0 +1,5 @@
|
||||||
|
|
||||||
|
insert into ttrss_filter_types (id,name,description) values (5, 'date',
|
||||||
|
'Article Date');
|
||||||
|
|
||||||
|
update ttrss_version set schema_version = 46;
|
Loading…
Reference in New Issue