Port to postgresql, perl 5.24

This commit is contained in:
Peter J. Holzer 2017-10-02 15:22:42 +02:00
parent 89eeab16ec
commit 7d8e075143
1 changed files with 7 additions and 0 deletions

7
rss2html.postgresql Normal file
View File

@ -0,0 +1,7 @@
CREATE TABLE feeds (id integer primary key autoincrement, url varchar, update_frequency int, last_update int, title varchar, type varchar, allow_img boolean, expire int, lang varchar);
CREATE TABLE items (id integer primary key autoincrement, title varchar, link varchar, content varchar, issued int, seen int, feed_id integer, old int);
CREATE TABLE read(item_id integer, user varchar, foreign key (item_id) references items(id));
CREATE INDEX items_link_idx on items(link);
CREATE INDEX read_item_id_idx on read(item_id);
CREATE TABLE later (item_id integer, user varchar, foreign key (item_id) references items(id));
CREATE INDEX later_item_id_idx on later(item_id);