[7303] Fixed sql changes part of pool patch.

This commit is contained in:
VladimirMangos 2009-02-19 13:11:37 +03:00
parent 4b46374577
commit a5f51f70d0
4 changed files with 116 additions and 2 deletions

View file

@ -22,7 +22,7 @@
DROP TABLE IF EXISTS `db_version`;
CREATE TABLE `db_version` (
`version` varchar(120) default NULL,
`required_7292_02_mangos_locales_points_of_interest` bit(1) default NULL
`required_7303_01_mangos_pools` bit(1) default NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED COMMENT='Used DB version notes';
--
@ -12772,6 +12772,111 @@ LOCK TABLES `points_of_interest` WRITE;
/*!40000 ALTER TABLE `points_of_interest` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `pool_creature`
--
DROP TABLE IF EXISTS `pool_creature`;
CREATE TABLE `pool_creature` (
`guid` int(10) unsigned NOT NULL default '0',
`pool_entry` mediumint(8) unsigned NOT NULL default '0',
`chance` float unsigned NOT NULL default '0',
PRIMARY KEY (`pool_entry`,`guid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
--
-- Dumping data for table `pool_creature`
--
LOCK TABLES `pool_creature` WRITE;
/*!40000 ALTER TABLE `pool_creature` DISABLE KEYS */;
/*!40000 ALTER TABLE `pool_creature` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `pool_gameobject`
--
DROP TABLE IF EXISTS `pool_gameobject`;
CREATE TABLE `pool_gameobject` (
`guid` int(10) unsigned NOT NULL default '0',
`pool_entry` mediumint(8) unsigned NOT NULL default '0',
`chance` float unsigned NOT NULL default '0',
PRIMARY KEY (`guid`,`pool_entry`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
--
-- Dumping data for table `pool_gameobject`
--
LOCK TABLES `pool_gameobject` WRITE;
/*!40000 ALTER TABLE `pool_gameobject` DISABLE KEYS */;
/*!40000 ALTER TABLE `pool_gameobject` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `pool_pool`
--
DROP TABLE IF EXISTS `pool_pool`;
CREATE TABLE `pool_pool` (
`pool_id` mediumint(8) unsigned NOT NULL default '0',
`mother_pool` mediumint(8) unsigned NOT NULL default '0',
`chance` float NOT NULL default '0',
PRIMARY KEY (`pool_id`,`mother_pool`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
--
-- Dumping data for table `pool_pool`
--
LOCK TABLES `pool_pool` WRITE;
/*!40000 ALTER TABLE `pool_pool` DISABLE KEYS */;
/*!40000 ALTER TABLE `pool_pool` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `pool_template`
--
DROP TABLE IF EXISTS `pool_template`;
CREATE TABLE `pool_template` (
`entry` mediumint(8) unsigned NOT NULL default '0' COMMENT 'Pool entry',
`max_limit` int(10) unsigned NOT NULL default '0' COMMENT 'Max number of objects (0) is no limit',
PRIMARY KEY (`entry`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
--
-- Dumping data for table `pool_template`
--
LOCK TABLES `pool_template` WRITE;
/*!40000 ALTER TABLE `pool_template` DISABLE KEYS */;
/*!40000 ALTER TABLE `pool_template` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `game_event_pool`
--
DROP TABLE IF EXISTS `game_event_pool`;
CREATE TABLE `game_event_pool` (
`pool_entry` mediumint(8) unsigned NOT NULL default '0' COMMENT 'Id of the pool',
`event` smallint(6) NOT NULL default '0' COMMENT 'Put negatives values to remove during event',
PRIMARY KEY (`pool_entry`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
--
-- Dumping data for table `game_event_pool`
--
LOCK TABLES `game_event_pool` WRITE;
/*!40000 ALTER TABLE `game_event_pool` DISABLE KEYS */;
/*!40000 ALTER TABLE `game_event_pool` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `prospecting_loot_template`
--

View file

@ -1,3 +1,6 @@
ALTER TABLE db_version CHANGE COLUMN required_7292_02_mangos_locales_points_of_interest required_7303_01_mangos_pools bit;
DROP TABLE IF EXISTS `pool_creature`;
CREATE TABLE `pool_creature` (
`guid` int(10) unsigned NOT NULL default '0',
`pool_entry` mediumint(8) unsigned NOT NULL default '0',
@ -5,6 +8,7 @@ CREATE TABLE `pool_creature` (
PRIMARY KEY (`pool_entry`,`guid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `pool_gameobject`;
CREATE TABLE `pool_gameobject` (
`guid` int(10) unsigned NOT NULL default '0',
`pool_entry` mediumint(8) unsigned NOT NULL default '0',
@ -12,6 +16,7 @@ CREATE TABLE `pool_gameobject` (
PRIMARY KEY (`guid`,`pool_entry`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `pool_pool`;
CREATE TABLE `pool_pool` (
`pool_id` mediumint(8) unsigned NOT NULL default '0',
`mother_pool` mediumint(8) unsigned NOT NULL default '0',
@ -19,12 +24,14 @@ CREATE TABLE `pool_pool` (
PRIMARY KEY (`pool_id`,`mother_pool`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `pool_template`;
CREATE TABLE `pool_template` (
`entry` mediumint(8) unsigned NOT NULL default '0' COMMENT 'Pool entry',
`max_limit` int(10) unsigned NOT NULL default '0' COMMENT 'Max number of objects (0) is no limit',
PRIMARY KEY (`entry`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `game_event_pool`;
CREATE TABLE `game_event_pool` (
`pool_entry` mediumint(8) unsigned NOT NULL default '0' COMMENT 'Id of the pool',
`event` smallint(6) NOT NULL default '0' COMMENT 'Put negatives values to remove during event',

View file

@ -179,6 +179,7 @@ pkgdata_DATA = \
7290_01_mangos_command.sql \
7292_01_mangos_points_of_interest.sql \
7292_02_mangos_locales_points_of_interest.sql \
7303_01_mangos_pools.sql \
README
## Additional files to include when running 'make dist'
@ -338,4 +339,5 @@ EXTRA_DIST = \
7290_01_mangos_command.sql \
7292_01_mangos_points_of_interest.sql \
7292_02_mangos_locales_points_of_interest.sql \
7303_01_mangos_pools.sql \
README

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "7302"
#define REVISION_NR "7303"
#endif // __REVISION_NR_H__