mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-16 22:58:34 +00:00
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:
@@ -355,6 +355,7 @@
|
||||
9099|2016_08_27_ip_exemptions.sql|SHOW TABLES LIKE 'ip_exemptions'|empty|
|
||||
9100|2016_08_27_object_display_name.sql|SHOW COLUMNS FROM `object` LIKE 'display_name'|empty|
|
||||
9101|2016_12_01_pcnpc_only.sql|SHOW COLUMNS FROM `spells_new` LIKE 'pcnpc_only_flag'|empty|
|
||||
9102|2017_01_10_book_languages.sql|SHOW COLUMNS FROM `books` LIKE 'language'|empty|
|
||||
|
||||
# Upgrade conditions:
|
||||
# This won't be needed after this system is implemented, but it is used database that are not
|
||||
|
||||
@@ -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;
|
||||
Reference in New Issue
Block a user