diff options
| author | Shauren <shauren.trinity@gmail.com> | 2015-05-22 00:17:48 +0200 |
|---|---|---|
| committer | Shauren <shauren.trinity@gmail.com> | 2015-05-22 00:17:48 +0200 |
| commit | b3a754cd7bef73c4f29a3fa819d2bac9f173685a (patch) | |
| tree | 60d1978a3393adbafd9dfe86a7e5ab550306e480 /sql/updates/characters | |
| parent | 1d29328769d505caf4541b0d712972195dda8b70 (diff) | |
Core/Garrisons: Implemented follower class/spec abilities and saving them to database
Diffstat (limited to 'sql/updates/characters')
| -rw-r--r-- | sql/updates/characters/2015_05_22_00_characters.sql | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/sql/updates/characters/2015_05_22_00_characters.sql b/sql/updates/characters/2015_05_22_00_characters.sql new file mode 100644 index 00000000000..35e72a5aa86 --- /dev/null +++ b/sql/updates/characters/2015_05_22_00_characters.sql @@ -0,0 +1,35 @@ +DROP TABLE IF EXISTS `character_garrison_follower_abilities`; +DROP TABLE IF EXISTS `character_garrison_followers`; + +-- +-- Table structure for table `character_garrison_followers` +-- + +CREATE TABLE `character_garrison_followers` ( + `dbId` bigint(20) unsigned NOT NULL, + `guid` bigint(20) unsigned NOT NULL, + `followerId` int(10) unsigned NOT NULL, + `quality` int(10) unsigned NOT NULL DEFAULT '2', + `level` int(10) unsigned NOT NULL DEFAULT '90', + `itemLevelWeapon` int(10) unsigned NOT NULL DEFAULT '600', + `itemLevelArmor` int(10) unsigned NOT NULL DEFAULT '600', + `xp` int(10) unsigned NOT NULL DEFAULT '0', + `currentBuilding` int(10) unsigned NOT NULL DEFAULT '0', + `currentMission` int(10) unsigned NOT NULL DEFAULT '0', + `status` int(10) unsigned NOT NULL DEFAULT '0', + PRIMARY KEY (`dbId`), + UNIQUE KEY `idx_guid_id` (`guid`,`followerId`), + CONSTRAINT `fk_foll_owner` FOREIGN KEY (`guid`) REFERENCES `characters` (`guid`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- +-- Table structure for table `character_garrison_follower_abilities` +-- + +CREATE TABLE `character_garrison_follower_abilities` ( + `dbId` bigint(20) unsigned NOT NULL, + `abilityId` int(10) unsigned NOT NULL, + `slot` tinyint(3) unsigned NOT NULL DEFAULT '0', + PRIMARY KEY (`dbId`,`abilityId`,`slot`), + CONSTRAINT `fk_foll_dbid` FOREIGN KEY (`dbId`) REFERENCES `character_garrison_followers` (`dbId`) ON DELETE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
