root/trunk/harvester/db.sql

Revision 17, 1.0 kB (checked in by astro, 4 years ago)

fetch.rb uses a transaction now
Podcast/Enclosure support in database schema, mrss, fetcher, generator and all templates

Line 
1 create table sources (
2   collection varchar(255) not null,
3   rss varchar(255) not null,
4   last varchar(40),
5   title varchar(255),
6   link varchar(255),
7   description text,
8   unique (collection, rss)
9 );
10
11 create table items (
12   rss varchar(255) not null,
13   title varchar(255),
14   link varchar(255),
15   date timestamp,
16   description text,
17   unique (rss, link)
18 );
19
20 create table enclosures (
21   rss varchar(255) not null,
22   link varchar(255) not null,
23   href varchar(255) not null,
24   mime varchar(255),
25   title varchar(255),
26   length int,
27   unique (rss, link, href)
28 );
29
30 create view last48hrs as select items.rss, items.title, items.link, sources.title as blogtitle, sources.collection from items, sources where items.rss = sources.rss and now() - interval '48 hour' < items.date order by date;
31
32 create table jabbersubscriptions (
33   jid varchar(255) not null,
34   collection varchar(255) not null,
35   unique (jid, collection)
36 );
37
38 create table jabbersettings (
39   jid varchar(255) primary key,
40   respect_status boolean,
41   message_type varchar(16)
42 );
Note: See TracBrowser for help on using the browser.