summaryrefslogtreecommitdiff
path: root/schema/ttrss_schema_pgsql.sql
diff options
context:
space:
mode:
Diffstat (limited to 'schema/ttrss_schema_pgsql.sql')
-rw-r--r--schema/ttrss_schema_pgsql.sql7
1 files changed, 5 insertions, 2 deletions
diff --git a/schema/ttrss_schema_pgsql.sql b/schema/ttrss_schema_pgsql.sql
index 3f0e012b3..ac1b38315 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 (138);
create table ttrss_enclosures (id serial not null primary key,
content_url text not null,
@@ -358,6 +360,7 @@ insert into ttrss_prefs (pref_name,type_id,def_value,section_id) values('_ENABLE
insert into ttrss_prefs (pref_name,type_id,def_value,section_id) values('_MOBILE_REVERSE_HEADLINES', 1, 'false', 1);
insert into ttrss_prefs (pref_name,type_id,def_value,section_id) values('USER_CSS_THEME', 2, '', 2);
insert into ttrss_prefs (pref_name,type_id,def_value,section_id) values('USER_LANGUAGE', 2, '', 2);
+insert into ttrss_prefs (pref_name,type_id,def_value,section_id) values('DEFAULT_SEARCH_LANGUAGE', 2, '', 2);
update ttrss_prefs set access_level = 1 where pref_name in ('ON_CATCHUP_SHOW_NEXT_FEED',
'SORT_HEADLINES_BY_FEED_DATE',