Merge pull request #585 from noudess/master

Use languages when reading books that are in a language other than common.
This commit is contained in:
Uleat
2017-01-27 22:48:43 -05:00
committed by GitHub
9 changed files with 59 additions and 11 deletions
@@ -0,0 +1,15 @@
alter table books add language int default 0;
drop table reading_is_fundamental;
create table reading_is_fundamental
(
filename varchar(32),
language int
);
insert into reading_is_fundamental (select items.filename, items.booktype from items where items.filename != "" group by filename);
update books set books.language = (select language from reading_is_fundamental r where r.filename = books.name);
drop table reading_is_fundamental;