diff options
Diffstat (limited to 'schema/ttrss_schema_pgsql.sql')
-rw-r--r-- | schema/ttrss_schema_pgsql.sql | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/schema/ttrss_schema_pgsql.sql b/schema/ttrss_schema_pgsql.sql index 3f0e012b3..b5bdba815 100644 --- a/schema/ttrss_schema_pgsql.sql +++ b/schema/ttrss_schema_pgsql.sql @@ -99,7 +99,8 @@ create table ttrss_feeds (id serial not null primary key, pubsub_state integer not null default 0, favicon_last_checked timestamp default null, feed_language varchar(100) not null default '', - auth_pass_encrypted boolean not null default false); + auth_pass_encrypted boolean not null default false, + unique(feed_url, owner_uid)); create index ttrss_feeds_owner_uid_index on ttrss_feeds(owner_uid); create index ttrss_feeds_cat_id_idx on ttrss_feeds(cat_id); @@ -109,6 +110,7 @@ insert into ttrss_feeds (owner_uid, title, feed_url) values create table ttrss_archived_feeds (id integer not null primary key, owner_uid integer not null references ttrss_users(id) on delete cascade, + created timestamp not null, title varchar(200) not null, feed_url text not null, site_url varchar(250) not null default ''); @@ -267,7 +269,7 @@ create index ttrss_tags_post_int_id_idx on ttrss_tags(post_int_id); create table ttrss_version (schema_version int not null); -insert into ttrss_version values (135); +insert into ttrss_version values (137); create table ttrss_enclosures (id serial not null primary key, content_url text not null, |