Files
moonwell-core-vanilla/sql/old_migrations/20180615111903_logs.sql
T
ratkosrb 716da74d7d Support for client build 1.10.2 (#213)
After this commit you have to move your DBCs inside a folder with the build number. So for example if they were in "data\dbc\" before, now they should be in "data\5875\dbc\" for 1.12.
2018-08-26 08:51:57 +03:00

44 lines
1.8 KiB
SQL

DROP PROCEDURE IF EXISTS add_migration;
delimiter ??
CREATE PROCEDURE `add_migration`()
BEGIN
DECLARE v INT DEFAULT 1;
SET v = (SELECT COUNT(*) FROM `migrations` WHERE `id`='20180615111903');
IF v=0 THEN
INSERT INTO `migrations` VALUES ('20180615111903');
-- Add your query below.
-- Dumping structure for table instance_creature_kills
CREATE TABLE IF NOT EXISTS `instance_creature_kills` (
`mapId` int(10) unsigned NOT NULL COMMENT 'MapId to where creature exist',
`creatureEntry` int(10) unsigned NOT NULL COMMENT 'entry of the creature who performed the kill',
`spellEntry` int(10) NOT NULL COMMENT 'entry of spell which did the kill. 0 for melee or unknown',
`count` int(10) unsigned NOT NULL COMMENT 'number of kills',
PRIMARY KEY (`mapId`,`creatureEntry`,`spellEntry`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='creatures killing players statistics';
-- Dumping structure for table instance_custom_counters
CREATE TABLE IF NOT EXISTS `instance_custom_counters` (
`index` int(10) unsigned NOT NULL COMMENT 'index as defined in InstanceStatistics.h',
`count` int(10) unsigned NOT NULL COMMENT 'counter',
PRIMARY KEY (`index`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='custom counters for instance statistics';
-- Dumping structure for table instance_wipes
CREATE TABLE IF NOT EXISTS `instance_wipes` (
`mapId` int(10) unsigned NOT NULL COMMENT 'MapId to where creature exist',
`creatureEntry` int(10) unsigned NOT NULL COMMENT 'creature which the wipe occured against',
`count` int(10) unsigned NOT NULL COMMENT 'number of wipes',
PRIMARY KEY (`mapId`,`creatureEntry`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='players wiping against creatures statistics';
-- End of migration.
END IF;
END??
delimiter ;
CALL add_migration();
DROP PROCEDURE IF EXISTS add_migration;