1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/ttrss_ynh.git synced 2024-10-01 13:34:46 +02:00

update mysql init schema

This commit is contained in:
titoko titoko 2014-12-16 20:43:54 +01:00
parent 872b3e0025
commit fa466a5cd4

View file

@ -44,7 +44,6 @@ create table ttrss_users (id integer primary key not null auto_increment,
pwd_hash varchar(250) not null, pwd_hash varchar(250) not null,
last_login datetime default null, last_login datetime default null,
access_level integer not null default 0, access_level integer not null default 0,
theme_id integer default null,
email varchar(250) not null default '', email varchar(250) not null default '',
full_name varchar(250) not null default '', full_name varchar(250) not null default '',
email_digest bool not null default false, email_digest bool not null default false,
@ -53,7 +52,7 @@ create table ttrss_users (id integer primary key not null auto_increment,
created datetime default null, created datetime default null,
twitter_oauth longtext default null, twitter_oauth longtext default null,
otp_enabled boolean not null default false, otp_enabled boolean not null default false,
index (theme_id)) ENGINE=InnoDB DEFAULT CHARSET=UTF8; resetpass_token varchar(250) default null) ENGINE=InnoDB DEFAULT CHARSET=UTF8;
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);
@ -302,7 +301,7 @@ create table ttrss_tags (id integer primary key auto_increment,
create table ttrss_version (schema_version int not null) ENGINE=InnoDB DEFAULT CHARSET=UTF8; create table ttrss_version (schema_version int not null) ENGINE=InnoDB DEFAULT CHARSET=UTF8;
insert into ttrss_version values (123); insert into ttrss_version values (126);
create table ttrss_enclosures (id integer primary key auto_increment, create table ttrss_enclosures (id integer primary key auto_increment,
content_url text not null, content_url text not null,
@ -310,6 +309,8 @@ create table ttrss_enclosures (id integer primary key auto_increment,
post_id integer not null, post_id integer not null,
title text not null, title text not null,
duration text not null, duration text not null,
width integer not null default 0,
height integer not null default 0,
index (post_id), index (post_id),
foreign key (post_id) references ttrss_entries(id) ON DELETE cascade) ENGINE=InnoDB DEFAULT CHARSET=UTF8; foreign key (post_id) references ttrss_entries(id) ON DELETE cascade) ENGINE=InnoDB DEFAULT CHARSET=UTF8;