fix shop main view

This commit is contained in:
shoopea 2020-02-07 11:14:02 +08:00
parent def808d49a
commit 571d054359

8
sql.go
View File

@ -583,17 +583,17 @@ func initDBViews() {
,omsm.link COLLATE utf8mb4_unicode_ci AS link ,omsm.link COLLATE utf8mb4_unicode_ci AS link
,omsm.number ,omsm.number
,omsm.user COLLATE utf8mb4_unicode_ci AS user ,omsm.user COLLATE utf8mb4_unicode_ci AS user
,oc.name COLLATE utf8mb4_unicode_ci AS castle
,omsm.mana ,omsm.mana
,omsm.mana_total ,omsm.mana_total
,omsm.class COLLATE utf8mb4_unicode_ci AS class ,omsm.class COLLATE utf8mb4_unicode_ci AS class
,obn.name COLLATE utf8mb4_unicode_ci AS castle
,omsm.fees COLLATE utf8mb4_unicode_ci AS fees ,omsm.fees COLLATE utf8mb4_unicode_ci AS fees
,omsm.guru COLLATE utf8mb4_unicode_ci AS guru ,omsm.guru COLLATE utf8mb4_unicode_ci AS guru
,omsm.open ,omsm.open
,omsm.castle_id
FROM obj_msg_shop_main omsm FROM obj_msg_shop_main omsm
,obj_name obn ,obj_castle oc
WHERE obn.obj_id = omsm.castle_id WHERE oc.obj_id = omsm.castle_id;`)
AND obn.priority = 0;`)
failOnError(err, "initDBViews : create view obj_shop_main_v") failOnError(err, "initDBViews : create view obj_shop_main_v")
log.Println("initDBViews : obj_shop_main_v created ...") log.Println("initDBViews : obj_shop_main_v created ...")