]>
Commit | Line | Data |
---|---|---|
28a80fbf AD |
1 | drop table ttrss_entries; |
2 | drop table ttrss_feeds; | |
3 | ||
4 | create table ttrss_feeds (id serial not null primary key, | |
5 | title varchar(200) not null unique, | |
6 | feed_url varchar(250) unique not null, | |
b7f4bda2 | 7 | icon_url varchar(250) not null default '', |
28a80fbf AD |
8 | last_updated timestamp default null); |
9 | ||
a2015351 AD |
10 | insert into ttrss_feeds (title,feed_url) values ('Footnotes', 'http://gnomedesktop.org/node/feed'); |
11 | insert into ttrss_feeds (title,feed_url) values ('Freedesktop.org', 'http://planet.freedesktop.org/rss20.xml'); | |
12 | insert into ttrss_feeds (title,feed_url) values ('Planet Debian', 'http://planet.debian.org/rss20.xml'); | |
13 | insert into ttrss_feeds (title,feed_url) values ('Planet GNOME', 'http://planet.gnome.org/rss20.xml'); | |
466001c4 AD |
14 | insert into ttrss_feeds (title,feed_url) values ('Planet Ubuntu', 'http://planet.ubuntulinux.org/rss20.xml'); |
15 | ||
a2015351 | 16 | insert into ttrss_feeds (title,feed_url) values ('Monologue', 'http://www.go-mono.com/monologue/index.rss'); |
857d6a80 | 17 | |
a2015351 | 18 | insert into ttrss_feeds (title,feed_url) values ('Latest Linux Kernel Versions', |
857d6a80 AD |
19 | 'http://kernel.org/kdist/rss.xml'); |
20 | ||
a2015351 | 21 | insert into ttrss_feeds (title,feed_url) values ('RPGDot Newsfeed', |
857d6a80 AD |
22 | 'http://www.rpgdot.com/team/rss/rss0.xml'); |
23 | ||
a2015351 | 24 | insert into ttrss_feeds (title,feed_url) values ('Digg.com News', |
857d6a80 AD |
25 | 'http://digg.com/rss/index.xml'); |
26 | ||
19fc76c0 | 27 | insert into ttrss_feeds (title,feed_url) values ('Technocrat.net', |
857d6a80 | 28 | 'http://syndication.technocrat.net/rss'); |
28a80fbf | 29 | |
28a80fbf | 30 | create table ttrss_entries (id serial not null primary key, |
d76a3b03 AD |
31 | feed_id int references ttrss_feeds(id) not null, |
32 | updated timestamp not null, | |
33 | title varchar(250) not null, | |
28a80fbf | 34 | guid varchar(300) not null unique, |
7fdd55fb | 35 | link varchar(300) not null, |
d76a3b03 | 36 | content text not null, |
466001c4 | 37 | content_hash varchar(250) not null, |
b197f117 | 38 | last_read timestamp, |
9a4506c8 | 39 | marked boolean not null default false, |
c3a8d71a | 40 | date_entered timestamp not null default NOW(), |
b82af8c3 | 41 | no_orig_date boolean not null default false, |
a1ea1e12 | 42 | comments varchar(250) not null default '', |
b82af8c3 | 43 | unread boolean not null default true); |
a0d53889 AD |
44 | |
45 | drop table ttrss_filters; | |
46 | drop table ttrss_filter_types; | |
47 | ||
48 | create table ttrss_filter_types (id integer primary key, | |
49 | name varchar(120) unique not null, | |
50 | description varchar(250) not null unique); | |
51 | ||
52 | insert into ttrss_filter_types (id,name,description) values (1, 'title', 'Title'); | |
53 | insert into ttrss_filter_types (id,name,description) values (2, 'content', 'Content'); | |
54 | insert into ttrss_filter_types (id,name,description) values (3, 'both', | |
bdc00fe0 | 55 | 'Title or Content'); |
a0d53889 AD |
56 | |
57 | create table ttrss_filters (id serial primary key, | |
58 | filter_type integer not null references ttrss_filter_types(id), | |
59 | regexp varchar(250) not null, | |
60 | description varchar(250) not null default ''); | |
61 |