mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-27 04:12:40 +01:00
Core/Garrisons: Implemented follower class/spec abilities and saving them to database
This commit is contained in:
35
sql/updates/characters/2015_05_22_00_characters.sql
Normal file
35
sql/updates/characters/2015_05_22_00_characters.sql
Normal file
@@ -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;
|
||||
Reference in New Issue
Block a user