Fix for bot guild script failures.

MOVED 'load_bots.sql' and 'drop_bots.sql' into this repository. (They are updated)
This commit is contained in:
Uleat
2014-03-22 05:17:38 -04:00
parent 2cef299775
commit cfdd48b2a3
6 changed files with 372 additions and 1 deletions
@@ -0,0 +1,27 @@
ALTER TABLE `botguildmembers` ADD `alt` TINYINT UNSIGNED NOT NULL DEFAULT '0' AFTER `public_note`;
DROP VIEW IF EXISTS `vwGuildMembers`;
CREATE VIEW `vwGuildMembers` AS
select 'C' as mobtype,
cm.char_id,
cm.guild_id,
cm.rank,
cm.tribute_enable,
cm.total_tribute,
cm.last_tribute,
cm.banker,
cm.public_note,
cm.alt
from guild_members as cm
union all
select 'B' as mobtype,
bm.char_id,
bm.guild_id,
bm.rank,
bm.tribute_enable,
bm.total_tribute,
bm.last_tribute,
bm.banker,
bm.public_note,
bm.alt
from botguildmembers as bm;