|
@ -31,7 +31,7 @@ create table arsse_folders( |
|
|
owner text not null references arsse_users(id) on delete cascade on update cascade, |
|
|
owner text not null references arsse_users(id) on delete cascade on update cascade, |
|
|
parent bigint references arsse_folders(id) on delete cascade, |
|
|
parent bigint references arsse_folders(id) on delete cascade, |
|
|
name text not null, |
|
|
name text not null, |
|
|
modified timestamp(0) with time zone not null default CURRENT_TIMESTAMP, -- |
|
|
modified timestamp(0) without time zone not null default CURRENT_TIMESTAMP, -- |
|
|
unique(owner,name,parent) |
|
|
unique(owner,name,parent) |
|
|
); |
|
|
); |
|
|
|
|
|
|
|
@ -41,10 +41,10 @@ create table arsse_feeds( |
|
|
title text, |
|
|
title text, |
|
|
favicon text, |
|
|
favicon text, |
|
|
source text, |
|
|
source text, |
|
|
updated timestamp(0) with time zone, |
|
|
updated timestamp(0) without time zone, |
|
|
modified timestamp(0) with time zone, |
|
|
modified timestamp(0) without time zone, |
|
|
next_fetch timestamp(0) with time zone, |
|
|
next_fetch timestamp(0) without time zone, |
|
|
orphaned timestamp(0) with time zone, |
|
|
orphaned timestamp(0) without time zone, |
|
|
etag text not null default '', |
|
|
etag text not null default '', |
|
|
err_count bigint not null default 0, |
|
|
err_count bigint not null default 0, |
|
|
err_msg text, |
|
|
err_msg text, |
|
@ -59,8 +59,8 @@ create table arsse_subscriptions( |
|
|
id bigserial primary key, |
|
|
id bigserial primary key, |
|
|
owner text not null references arsse_users(id) on delete cascade on update cascade, |
|
|
owner text not null references arsse_users(id) on delete cascade on update cascade, |
|
|
feed bigint not null references arsse_feeds(id) on delete cascade, |
|
|
feed bigint not null references arsse_feeds(id) on delete cascade, |
|
|
added timestamp(0) with time zone not null default CURRENT_TIMESTAMP, |
|
|
added timestamp(0) without time zone not null default CURRENT_TIMESTAMP, |
|
|
modified timestamp(0) with time zone not null default CURRENT_TIMESTAMP, |
|
|
modified timestamp(0) without time zone not null default CURRENT_TIMESTAMP, |
|
|
title text, |
|
|
title text, |
|
|
order_type smallint not null default 0, |
|
|
order_type smallint not null default 0, |
|
|
pinned smallint not null default 0, |
|
|
pinned smallint not null default 0, |
|
@ -74,9 +74,9 @@ create table arsse_articles( |
|
|
url text, |
|
|
url text, |
|
|
title text, |
|
|
title text, |
|
|
author text, |
|
|
author text, |
|
|
published timestamp(0) with time zone, |
|
|
published timestamp(0) without time zone, |
|
|
edited timestamp(0) with time zone, |
|
|
edited timestamp(0) without time zone, |
|
|
modified timestamp(0) with time zone not null default CURRENT_TIMESTAMP, |
|
|
modified timestamp(0) without time zone not null default CURRENT_TIMESTAMP, |
|
|
content text, |
|
|
content text, |
|
|
guid text, |
|
|
guid text, |
|
|
url_title_hash text not null, |
|
|
url_title_hash text not null, |
|
@ -95,14 +95,14 @@ create table arsse_marks( |
|
|
subscription bigint not null references arsse_subscriptions(id) on delete cascade on update cascade, |
|
|
subscription bigint not null references arsse_subscriptions(id) on delete cascade on update cascade, |
|
|
read smallint not null default 0, |
|
|
read smallint not null default 0, |
|
|
starred smallint not null default 0, |
|
|
starred smallint not null default 0, |
|
|
modified timestamp(0) with time zone not null default CURRENT_TIMESTAMP, |
|
|
modified timestamp(0) without time zone not null default CURRENT_TIMESTAMP, |
|
|
primary key(article,subscription) |
|
|
primary key(article,subscription) |
|
|
); |
|
|
); |
|
|
|
|
|
|
|
|
create table arsse_editions( |
|
|
create table arsse_editions( |
|
|
id bigserial primary key, |
|
|
id bigserial primary key, |
|
|
article bigint not null references arsse_articles(id) on delete cascade, |
|
|
article bigint not null references arsse_articles(id) on delete cascade, |
|
|
modified timestamp(0) with time zone not null default CURRENT_TIMESTAMP |
|
|
modified timestamp(0) without time zone not null default CURRENT_TIMESTAMP |
|
|
); |
|
|
); |
|
|
|
|
|
|
|
|
create table arsse_categories( |
|
|
create table arsse_categories( |
|
|