1 ALTER TABLE `guild` ADD COLUMN `BankMoney` bigint(20) NOT NULL DEFAULT 0 AFTER `createdate`;
2 ALTER TABLE `guild_rank` ADD COLUMN `BankMoneyPerDay` int(11) unsigned NOT NULL default '0' AFTER `rights`;
3 ALTER TABLE `guild_member` ADD COLUMN `BankResetTimeMoney` int(11) unsigned NOT NULL DEFAULT '0' AFTER `OFFnote`;
4 ALTER TABLE `guild_member` ADD COLUMN `BankRemMoney` int(11) unsigned NOT NULL DEFAULT '0' AFTER `BankResetTimeMoney`;
5 ALTER TABLE `guild_member` ADD COLUMN `BankResetTimeTab0` int(11) unsigned NOT NULL DEFAULT '0' AFTER `BankRemMoney`;
6 ALTER TABLE `guild_member` ADD COLUMN `BankRemSlotsTab0` int(11) unsigned NOT NULL DEFAULT '0' AFTER `BankResetTimeTab0`;
7 ALTER TABLE `guild_member` ADD COLUMN `BankResetTimeTab1` int(11) unsigned NOT NULL DEFAULT '0' AFTER `BankRemSlotsTab0`;
8 ALTER TABLE `guild_member` ADD COLUMN `BankRemSlotsTab1` int(11) unsigned NOT NULL DEFAULT '0' AFTER `BankResetTimeTab1`;
9 ALTER TABLE `guild_member` ADD COLUMN `BankResetTimeTab2` int(11) unsigned NOT NULL DEFAULT '0' AFTER `BankRemSlotsTab1`;
10 ALTER TABLE `guild_member` ADD COLUMN `BankRemSlotsTab2` int(11) unsigned NOT NULL DEFAULT '0' AFTER `BankResetTimeTab2`;
11 ALTER TABLE `guild_member` ADD COLUMN `BankResetTimeTab3` int(11) unsigned NOT NULL DEFAULT '0' AFTER `BankRemSlotsTab2`;
12 ALTER TABLE `guild_member` ADD COLUMN `BankRemSlotsTab3` int(11) unsigned NOT NULL DEFAULT '0' AFTER `BankResetTimeTab3`;
13 ALTER TABLE `guild_member` ADD COLUMN `BankResetTimeTab4` int(11) unsigned NOT NULL DEFAULT '0' AFTER `BankRemSlotsTab3`;
14 ALTER TABLE `guild_member` ADD COLUMN `BankRemSlotsTab4` int(11) unsigned NOT NULL DEFAULT '0' AFTER `BankResetTimeTab4`;
15 ALTER TABLE `guild_member` ADD COLUMN `BankResetTimeTab5` int(11) unsigned NOT NULL DEFAULT '0' AFTER `BankRemSlotsTab4`;
16 ALTER TABLE `guild_member` ADD COLUMN `BankRemSlotsTab5` int(11) unsigned NOT NULL DEFAULT '0' AFTER `BankResetTimeTab5`;
18 DROP TABLE IF EXISTS `guild_bank_item`;
19 CREATE TABLE `guild_bank_item` (
20 `guildid` int(11) unsigned NOT NULL default '0',
21 `TabId` tinyint(1) unsigned NOT NULL default '0',
22 `SlotId` tinyint(3) unsigned NOT NULL default '0',
23 `item_guid` int(11) unsigned NOT NULL default '0',
24 PRIMARY KEY (`guildid`,`tabid`,`slotid`)
25 ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
27 DROP TABLE IF EXISTS `guild_bank_tab`;
28 CREATE TABLE `guild_bank_tab` (
29 `guildid` int(11) unsigned NOT NULL default '0',
30 `TabId` tinyint(1) unsigned NOT NULL default '0',
31 `TabName` varchar(100) NOT NULL default '',
32 `TabIcon` varchar(100) NOT NULL default '',
33 PRIMARY KEY (`guildid`,`TabId`)
34 ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
36 DROP TABLE IF EXISTS `guild_bank_right`;
37 CREATE TABLE `guild_bank_right` (
38 `guildid` int(11) unsigned NOT NULL default '0',
39 `TabId` tinyint(1) unsigned NOT NULL default '0',
40 `rid` int(11) unsigned NOT NULL default '0',
41 `Right` tinyint(3) unsigned NOT NULL default '0',
42 `SlotPerDay` int(11) unsigned NOT NULL default '0',
43 PRIMARY KEY (`guildid`,`TabId`,`rid`)
44 ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
46 DROP TABLE IF EXISTS `guild_bank_eventlog`;
47 CREATE TABLE `guild_bank_eventlog` (
48 `guildid` int(11) unsigned NOT NULL default '0',
49 `LogGuid` int(11) unsigned NOT NULL default '0',
50 `LogEntry` tinyint(1) unsigned NOT NULL default '0',
51 `TabId` tinyint(1) unsigned NOT NULL default '0',
52 `PlayerGuid` int(11) unsigned NOT NULL default '0',
53 `ItemOrMoney` int(11) unsigned NOT NULL default '0',
54 `ItemStackCount` tinyint(3) unsigned NOT NULL default '0',
55 `DestTabId` tinyint(1) unsigned NOT NULL default '0',
56 `TimeStamp` bigint(20) unsigned NOT NULL default '0',
57 PRIMARY KEY (`guildid`,`LogGuid`)
58 ) ENGINE=InnoDB DEFAULT CHARSET=utf8;