aboutsummaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorNay <dnpd.dd@gmail.com>2012-07-13 07:33:25 -0700
committerNay <dnpd.dd@gmail.com>2012-07-13 07:33:25 -0700
commite56313eb02f381a47566e3da58eee59f00dd512c (patch)
treef4077c03b550d11b174dd689940d42c7a18cfb96 /sql
parent176a2c1080c609138b7291828c905cdb979e1f3e (diff)
parente757ebf6ba441358ec5b53bceef54f35fdfa929e (diff)
Merge pull request #7087 from Odyssey/equipmentManager
Core/Player: Fix issues with 'ignore this slot' option on equipment manager usage Closes #2334 Ref #6813 Ref #6955
Diffstat (limited to 'sql')
-rw-r--r--sql/base/characters_database.sql39
-rw-r--r--sql/updates/characters/2012_06_13_00_characters_character_equipmentsets.sql22
2 files changed, 42 insertions, 19 deletions
diff --git a/sql/base/characters_database.sql b/sql/base/characters_database.sql
index 57e5f6f6ab7..b4a3af6e8ff 100644
--- a/sql/base/characters_database.sql
+++ b/sql/base/characters_database.sql
@@ -547,25 +547,26 @@ CREATE TABLE `character_equipmentsets` (
`setindex` tinyint(3) unsigned NOT NULL DEFAULT '0',
`name` varchar(31) NOT NULL,
`iconname` varchar(100) NOT NULL,
- `item0` int(10) unsigned NOT NULL DEFAULT '0',
- `item1` int(10) unsigned NOT NULL DEFAULT '0',
- `item2` int(10) unsigned NOT NULL DEFAULT '0',
- `item3` int(10) unsigned NOT NULL DEFAULT '0',
- `item4` int(10) unsigned NOT NULL DEFAULT '0',
- `item5` int(10) unsigned NOT NULL DEFAULT '0',
- `item6` int(10) unsigned NOT NULL DEFAULT '0',
- `item7` int(10) unsigned NOT NULL DEFAULT '0',
- `item8` int(10) unsigned NOT NULL DEFAULT '0',
- `item9` int(10) unsigned NOT NULL DEFAULT '0',
- `item10` int(10) unsigned NOT NULL DEFAULT '0',
- `item11` int(10) unsigned NOT NULL DEFAULT '0',
- `item12` int(10) unsigned NOT NULL DEFAULT '0',
- `item13` int(10) unsigned NOT NULL DEFAULT '0',
- `item14` int(10) unsigned NOT NULL DEFAULT '0',
- `item15` int(10) unsigned NOT NULL DEFAULT '0',
- `item16` int(10) unsigned NOT NULL DEFAULT '0',
- `item17` int(10) unsigned NOT NULL DEFAULT '0',
- `item18` int(10) unsigned NOT NULL DEFAULT '0',
+ `ignore_mask` int(11) unsigned NOT NULL DEFAULT '0',
+ `item0` int(11) unsigned NOT NULL DEFAULT '0',
+ `item1` int(11) unsigned NOT NULL DEFAULT '0',
+ `item2` int(11) unsigned NOT NULL DEFAULT '0',
+ `item3` int(11) unsigned NOT NULL DEFAULT '0',
+ `item4` int(11) unsigned NOT NULL DEFAULT '0',
+ `item5` int(11) unsigned NOT NULL DEFAULT '0',
+ `item6` int(11) unsigned NOT NULL DEFAULT '0',
+ `item7` int(11) unsigned NOT NULL DEFAULT '0',
+ `item8` int(11) unsigned NOT NULL DEFAULT '0',
+ `item9` int(11) unsigned NOT NULL DEFAULT '0',
+ `item10` int(11) unsigned NOT NULL DEFAULT '0',
+ `item11` int(11) unsigned NOT NULL DEFAULT '0',
+ `item12` int(11) unsigned NOT NULL DEFAULT '0',
+ `item13` int(11) unsigned NOT NULL DEFAULT '0',
+ `item14` int(11) unsigned NOT NULL DEFAULT '0',
+ `item15` int(11) unsigned NOT NULL DEFAULT '0',
+ `item16` int(11) unsigned NOT NULL DEFAULT '0',
+ `item17` int(11) unsigned NOT NULL DEFAULT '0',
+ `item18` int(11) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`setguid`),
UNIQUE KEY `idx_set` (`guid`,`setguid`,`setindex`),
KEY `Idx_setindex` (`setindex`)
diff --git a/sql/updates/characters/2012_06_13_00_characters_character_equipmentsets.sql b/sql/updates/characters/2012_06_13_00_characters_character_equipmentsets.sql
new file mode 100644
index 00000000000..ebf12062be3
--- /dev/null
+++ b/sql/updates/characters/2012_06_13_00_characters_character_equipmentsets.sql
@@ -0,0 +1,22 @@
+ALTER TABLE `character_equipmentsets`
+MODIFY COLUMN `item0` int(11) unsigned NOT NULL DEFAULT 0,
+MODIFY COLUMN `item1` int(11) unsigned NOT NULL DEFAULT 0,
+MODIFY COLUMN `item2` int(11) unsigned NOT NULL DEFAULT 0,
+MODIFY COLUMN `item3` int(11) unsigned NOT NULL DEFAULT 0,
+MODIFY COLUMN `item4` int(11) unsigned NOT NULL DEFAULT 0,
+MODIFY COLUMN `item5` int(11) unsigned NOT NULL DEFAULT 0,
+MODIFY COLUMN `item6` int(11) unsigned NOT NULL DEFAULT 0,
+MODIFY COLUMN `item7` int(11) unsigned NOT NULL DEFAULT 0,
+MODIFY COLUMN `item8` int(11) unsigned NOT NULL DEFAULT 0,
+MODIFY COLUMN `item9` int(11) unsigned NOT NULL DEFAULT 0,
+MODIFY COLUMN `item10` int(11) unsigned NOT NULL DEFAULT 0,
+MODIFY COLUMN `item11` int(11) unsigned NOT NULL DEFAULT 0,
+MODIFY COLUMN `item12` int(11) unsigned NOT NULL DEFAULT 0,
+MODIFY COLUMN `item13` int(11) unsigned NOT NULL DEFAULT 0,
+MODIFY COLUMN `item14` int(11) unsigned NOT NULL DEFAULT 0,
+MODIFY COLUMN `item15` int(11) unsigned NOT NULL DEFAULT 0,
+MODIFY COLUMN `item16` int(11) unsigned NOT NULL DEFAULT 0,
+MODIFY COLUMN `item17` int(11) unsigned NOT NULL DEFAULT 0,
+MODIFY COLUMN `item18` int(11) unsigned NOT NULL DEFAULT 0;
+
+ALTER TABLE `character_equipmentsets` ADD COLUMN `ignore_mask` int(11) unsigned NOT NULL DEFAULT 0 AFTER `iconname`;