IconDB/Fixups (obligatory)

* table had wrong engine
 * two hunter pets have unique icons only referenced in creaturefamily.dbc
 * fixed links to rel-tabs
This commit is contained in:
Sarjuuk
2017-03-29 22:16:08 +02:00
parent ee568da6ec
commit cd9f90cea9
6 changed files with 33 additions and 15 deletions

View File

@@ -858,10 +858,12 @@ DROP TABLE IF EXISTS `aowow_icons`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `aowow_icons` (
`id` mediumint(9) NOT NULL,
`iconString` varchar(55) NOT NULL DEFAULT '',
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
`id` smallint(5) unsigned NOT NULL AUTO_INCREMENT,
`cuFlags` int(11) unsigned NOT NULL DEFAULT '0',
`name` varchar(55) NOT NULL DEFAULT '',
PRIMARY KEY (`id`),
INDEX `name` (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1;
/*!40101 SET character_set_client = @saved_cs_client */;
--

View File

@@ -9,7 +9,7 @@ if (!CLI)
$customData = array(
);
$reqDBC = ['spellicon', 'itemdisplayinfo'];
$reqDBC = ['spellicon', 'itemdisplayinfo', 'creaturefamily'];
function icons()
{
@@ -22,6 +22,8 @@ function icons()
(SELECT LOWER(SUBSTRING_INDEX(iconPath, "\\\\", -1)) AS x FROM dbc_spellicon WHERE iconPath LIKE "%icons%")
UNION
(SELECT LOWER(inventoryIcon1) AS x FROM dbc_itemdisplayinfo WHERE inventoryIcon1 <> "")
UNION
(SELECT LOWER(SUBSTRING_INDEX(iconString, "\\\\", -1)) AS x FROM dbc_creaturefamily WHERE iconString LIKE "%icons%")
) y
GROUP BY
x

View File

@@ -5,7 +5,7 @@ CREATE TABLE `aowow_icons` (
`name` VARCHAR(55) NOT NULL DEFAULT '',
PRIMARY KEY (`id`),
INDEX `name` (`name`)
) COLLATE='utf8_general_ci' ENGINE=MyISAM AUTO_INCREMENT=1;
) COLLATE='utf8_general_ci' ENGINE=InnoDB AUTO_INCREMENT=1;
ALTER TABLE `aowow_items`
ADD COLUMN `iconId` SMALLINT(5) UNSIGNED NOT NULL DEFAULT '0' AFTER `name_loc8`,