diff options
| author | Andrew Dolgov <fox@bah.spb.su> | 2005-09-03 08:22:29 +0100 |
|---|---|---|
| committer | Andrew Dolgov <fox@bah.spb.su> | 2005-09-03 08:22:29 +0100 |
| commit | a0d5388913ca8f9a97fa1ef257517230412bafdd (patch) | |
| tree | 6c331d48d6a8a93d612875564c3a273b7b9a84bb /ttrss_schema.sql | |
| parent | f92db4f5e750358bf49f4aa81d6f91b00e006494 (diff) | |
reworked preferences dialog, start work on post filters (schema updated)
Diffstat (limited to 'ttrss_schema.sql')
| -rw-r--r-- | ttrss_schema.sql | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/ttrss_schema.sql b/ttrss_schema.sql index 364087f17..79a58677c 100644 --- a/ttrss_schema.sql +++ b/ttrss_schema.sql @@ -41,4 +41,21 @@ create table ttrss_entries (id serial not null primary key, no_orig_date boolean not null default false, comments varchar(250) not null default '', unread boolean not null default true); - + +drop table ttrss_filters; +drop table ttrss_filter_types; + +create table ttrss_filter_types (id integer primary key, + name varchar(120) unique not null, + description varchar(250) not null unique); + +insert into ttrss_filter_types (id,name,description) values (1, 'title', 'Title'); +insert into ttrss_filter_types (id,name,description) values (2, 'content', 'Content'); +insert into ttrss_filter_types (id,name,description) values (3, 'both', + 'Title and Content'); + +create table ttrss_filters (id serial primary key, + filter_type integer not null references ttrss_filter_types(id), + regexp varchar(250) not null, + description varchar(250) not null default ''); + |