]> git.wh0rd.org - tt-rss.git/blame - ttrss_schema_mysql.sql
updated mysql schema
[tt-rss.git] / ttrss_schema_mysql.sql
CommitLineData
648472a7
AD
1drop table if exists ttrss_entries;
2drop table if exists ttrss_feeds;
3
4create table ttrss_feeds (id integer not null auto_increment primary key,
5 title varchar(200) not null unique,
6 feed_url varchar(250) unique not null,
7 icon_url varchar(250) not null default '',
4b3dff6e 8 last_updated timestamp default null) TYPE=InnoDB;
648472a7
AD
9
10insert into ttrss_feeds (title,feed_url) values ('Footnotes', 'http://gnomedesktop.org/node/feed');
11insert into ttrss_feeds (title,feed_url) values ('Freedesktop.org', 'http://planet.freedesktop.org/rss20.xml');
12insert into ttrss_feeds (title,feed_url) values ('Planet Debian', 'http://planet.debian.org/rss20.xml');
13insert into ttrss_feeds (title,feed_url) values ('Planet GNOME', 'http://planet.gnome.org/rss20.xml');
14insert into ttrss_feeds (title,feed_url) values ('Planet Ubuntu', 'http://planet.ubuntulinux.org/rss20.xml');
15
16insert into ttrss_feeds (title,feed_url) values ('Monologue', 'http://www.go-mono.com/monologue/index.rss');
17
18insert into ttrss_feeds (title,feed_url) values ('Latest Linux Kernel Versions',
19 'http://kernel.org/kdist/rss.xml');
20
21insert into ttrss_feeds (title,feed_url) values ('RPGDot Newsfeed',
22 'http://www.rpgdot.com/team/rss/rss0.xml');
23
24insert into ttrss_feeds (title,feed_url) values ('Digg.com News',
25 'http://digg.com/rss/index.xml');
26
27insert into ttrss_feeds (title,feed_url) values ('Technocrat.net',
28 'http://syndication.technocrat.net/rss');
29
30create table ttrss_entries (id integer not null primary key auto_increment,
4b3dff6e 31 feed_id integer not null,
648472a7
AD
32 updated timestamp not null,
33 title varchar(250) not null,
34 guid varchar(250) not null unique,
35 link varchar(250) not null,
36 content text not null,
37 content_hash varchar(250) not null,
38 last_read timestamp,
4b3dff6e 39 marked bool not null default 'false',
648472a7 40 date_entered timestamp not null,
4b3dff6e 41 no_orig_date bool not null default 'false',
648472a7 42 comments varchar(250) not null default '',
4b3dff6e 43 unread bool not null default 'true') TYPE=InnoDB;
648472a7
AD
44
45drop table if exists ttrss_filters;
46drop table if exists ttrss_filter_types;
47
48create table ttrss_filter_types (id integer primary key,
49 name varchar(120) unique not null,
4b3dff6e 50 description varchar(250) not null unique) TYPE=InnoDB;
648472a7 51
648472a7
AD
52
53insert into ttrss_filter_types (id,name,description) values (1, 'title', 'Title');
54insert into ttrss_filter_types (id,name,description) values (2, 'content', 'Content');
55insert into ttrss_filter_types (id,name,description) values (3, 'both',
56 'Title or Content');
57
4b3dff6e 58create table ttrss_filters (id integer primary key auto_increment,
648472a7 59 filter_type integer not null,
4b3dff6e
AD
60 reg_exp varchar(250) not null,
61 description varchar(250) not null default '') TYPE=InnoDB;
648472a7 62
648472a7 63