diff options
author | Andrew Dolgov <[email protected]> | 2019-11-01 11:57:36 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2019-11-01 11:57:45 +0300 |
commit | 84e9f1d5ccec90103a3decb7069884342f73fdfb (patch) | |
tree | 85ea7e5512d263c0e9563c81ce45a9cb6399c764 /schema/ttrss_schema_pgsql.sql | |
parent | 178bcd43497253c2ffb35d6c3ab3456277bf4ab6 (diff) |
update schema for app-specific passwords
Diffstat (limited to 'schema/ttrss_schema_pgsql.sql')
-rw-r--r-- | schema/ttrss_schema_pgsql.sql | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/schema/ttrss_schema_pgsql.sql b/schema/ttrss_schema_pgsql.sql index ac1b38315..a0b76ab62 100644 --- a/schema/ttrss_schema_pgsql.sql +++ b/schema/ttrss_schema_pgsql.sql @@ -30,6 +30,7 @@ drop table if exists ttrss_cat_counters_cache; drop table if exists ttrss_archived_feeds; drop table if exists ttrss_feeds; drop table if exists ttrss_feed_categories; +drop table if exists ttrss_app_passwords; drop table if exists ttrss_users; drop table if exists ttrss_themes; drop table if exists ttrss_sessions; @@ -55,6 +56,12 @@ create table ttrss_users (id serial not null primary key, insert into ttrss_users (login,pwd_hash,access_level) values ('admin', 'SHA1:5baa61e4c9b93f3f0682250b6cf8331b7ee68fd8', 10); +create table ttrss_app_passwords (id serial not null primary key, + title varchar(250) not null, + pwd_hash text not null, + service varchar(100) not null, + owner_uid integer not null references ttrss_users(id) on delete cascade); + create table ttrss_feed_categories(id serial not null primary key, owner_uid integer not null references ttrss_users(id) on delete cascade, collapsed boolean not null default false, @@ -269,7 +276,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 (138); +insert into ttrss_version values (139); create table ttrss_enclosures (id serial not null primary key, content_url text not null, |