mirror of
https://github.com/EQEmu/Server.git
synced 2026-04-01 19:42:28 +00:00
Fix for bots guild-related view query issue
This commit is contained in:
parent
1b888784eb
commit
99c1c826a8
@ -37,7 +37,7 @@
|
|||||||
#define CURRENT_BINARY_DATABASE_VERSION 9152
|
#define CURRENT_BINARY_DATABASE_VERSION 9152
|
||||||
|
|
||||||
#ifdef BOTS
|
#ifdef BOTS
|
||||||
#define CURRENT_BINARY_BOTS_DATABASE_VERSION 9026
|
#define CURRENT_BINARY_BOTS_DATABASE_VERSION 9027
|
||||||
#else
|
#else
|
||||||
#define CURRENT_BINARY_BOTS_DATABASE_VERSION 0 // must be 0
|
#define CURRENT_BINARY_BOTS_DATABASE_VERSION 0 // must be 0
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@ -25,6 +25,7 @@
|
|||||||
9024|2019_06_27_bots_pet_get_lost.sql|SELECT `bot_command` FROM `bot_command_settings` WHERE `bot_command` LIKE 'petgetlost'|empty|
|
9024|2019_06_27_bots_pet_get_lost.sql|SELECT `bot_command` FROM `bot_command_settings` WHERE `bot_command` LIKE 'petgetlost'|empty|
|
||||||
9025|2019_08_26_bots_owner_option_spawn_message.sql|SELECT * FROM db_version WHERE bots_version >= 9025|empty|
|
9025|2019_08_26_bots_owner_option_spawn_message.sql|SELECT * FROM db_version WHERE bots_version >= 9025|empty|
|
||||||
9026|2019_09_09_bots_owner_options_rework.sql|SHOW COLUMNS FROM `bot_owner_options` LIKE 'option_type'|empty|
|
9026|2019_09_09_bots_owner_options_rework.sql|SHOW COLUMNS FROM `bot_owner_options` LIKE 'option_type'|empty|
|
||||||
|
9027|2020_03_30_bots_view_update.sql|SELECT * FROM db_version WHERE bots_version >= 9027|empty|
|
||||||
|
|
||||||
# Upgrade conditions:
|
# Upgrade conditions:
|
||||||
# This won't be needed after this system is implemented, but it is used database that are not
|
# This won't be needed after this system is implemented, but it is used database that are not
|
||||||
|
|||||||
24
utils/sql/git/bots/required/2020_03_30_bots_view_update.sql
Normal file
24
utils/sql/git/bots/required/2020_03_30_bots_view_update.sql
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
DROP VIEW IF EXISTS `vw_bot_character_mobs`;
|
||||||
|
|
||||||
|
-- Views
|
||||||
|
CREATE VIEW `vw_bot_character_mobs` AS
|
||||||
|
SELECT
|
||||||
|
_utf8'C' AS mob_type,
|
||||||
|
c.`id`,
|
||||||
|
c.`name`,
|
||||||
|
c.`class`,
|
||||||
|
c.`level`,
|
||||||
|
c.`last_login`,
|
||||||
|
c.`zone_id`,
|
||||||
|
c.`deleted_at`
|
||||||
|
FROM `character_data` AS c
|
||||||
|
UNION ALL
|
||||||
|
SELECT _utf8'B' AS mob_type,
|
||||||
|
b.`bot_id` AS id,
|
||||||
|
b.`name`,
|
||||||
|
b.`class`,
|
||||||
|
b.`level`,
|
||||||
|
b.`last_spawn` AS last_login,
|
||||||
|
b.`zone_id`,
|
||||||
|
NULL AS `deleted_at`
|
||||||
|
FROM `bot_data` AS b;
|
||||||
Loading…
x
Reference in New Issue
Block a user