schema: add missing stuff
This commit is contained in:
parent
68b0380118
commit
b158103f2f
|
@ -58,6 +58,14 @@ create table ttrss_users (id integer primary key not null auto_increment,
|
||||||
insert into ttrss_users (login,pwd_hash,access_level) values ('admin',
|
insert into ttrss_users (login,pwd_hash,access_level) values ('admin',
|
||||||
'SHA1:5baa61e4c9b93f3f0682250b6cf8331b7ee68fd8', 10);
|
'SHA1:5baa61e4c9b93f3f0682250b6cf8331b7ee68fd8', 10);
|
||||||
|
|
||||||
|
create table ttrss_app_passwords (id integer not null primary key auto_increment,
|
||||||
|
title varchar(250) not null,
|
||||||
|
pwd_hash text not null,
|
||||||
|
service varchar(100) not null,
|
||||||
|
created datetime not null,
|
||||||
|
last_used datetime default null,
|
||||||
|
owner_uid integer not null references ttrss_users(id) on delete cascade);
|
||||||
|
|
||||||
create table ttrss_feed_categories(id integer not null primary key auto_increment,
|
create table ttrss_feed_categories(id integer not null primary key auto_increment,
|
||||||
owner_uid integer not null,
|
owner_uid integer not null,
|
||||||
title varchar(200) not null,
|
title varchar(200) not null,
|
||||||
|
|
|
@ -60,6 +60,8 @@ create table ttrss_app_passwords (id serial not null primary key,
|
||||||
title varchar(250) not null,
|
title varchar(250) not null,
|
||||||
pwd_hash text not null,
|
pwd_hash text not null,
|
||||||
service varchar(100) not null,
|
service varchar(100) not null,
|
||||||
|
created timestamp not null,
|
||||||
|
last_used timestamp default null,
|
||||||
owner_uid integer not null references ttrss_users(id) on delete cascade);
|
owner_uid integer not null references ttrss_users(id) on delete cascade);
|
||||||
|
|
||||||
create table ttrss_feed_categories(id serial not null primary key,
|
create table ttrss_feed_categories(id serial not null primary key,
|
||||||
|
|
|
@ -4,6 +4,8 @@ create table ttrss_app_passwords (id integer not null primary key auto_increment
|
||||||
title varchar(250) not null,
|
title varchar(250) not null,
|
||||||
pwd_hash text not null,
|
pwd_hash text not null,
|
||||||
service varchar(100) not null,
|
service varchar(100) not null,
|
||||||
|
created datetime not null,
|
||||||
|
last_used datetime default null,
|
||||||
owner_uid integer not null references ttrss_users(id) on delete cascade);
|
owner_uid integer not null references ttrss_users(id) on delete cascade);
|
||||||
|
|
||||||
update ttrss_version set schema_version = 139;
|
update ttrss_version set schema_version = 139;
|
||||||
|
|
|
@ -4,6 +4,8 @@ create table ttrss_app_passwords (id serial not null primary key,
|
||||||
title varchar(250) not null,
|
title varchar(250) not null,
|
||||||
pwd_hash text not null,
|
pwd_hash text not null,
|
||||||
service varchar(100) not null,
|
service varchar(100) not null,
|
||||||
|
created timestamp not null,
|
||||||
|
last_used timestamp default null,
|
||||||
owner_uid integer not null references ttrss_users(id) on delete cascade);
|
owner_uid integer not null references ttrss_users(id) on delete cascade);
|
||||||
|
|
||||||
update ttrss_version set schema_version = 139;
|
update ttrss_version set schema_version = 139;
|
||||||
|
|
Loading…
Reference in New Issue