aboutsummaryrefslogtreecommitdiff
path: root/sql/updates/characters
diff options
context:
space:
mode:
Diffstat (limited to 'sql/updates/characters')
-rw-r--r--sql/updates/characters/2015_05_22_00_characters.sql35
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;