aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDrahy <none@none>2009-02-22 04:18:30 +0100
committerDrahy <none@none>2009-02-22 04:18:30 +0100
commitb2a41e0e607294b71015a060eb72ff92a63f2054 (patch)
treee5a215014e0cc69341d0fff5d8284cdc87387b2e
parent242c2cff4a9cebbc94512f3441651e33e45ad44d (diff)
* Trinity sql coding style for latest files
* Updated characters.sql up to this revision --HG-- branch : trunk
-rw-r--r--sql/characters.sql185
-rw-r--r--sql/updates/1495_mangos_7312_01_world_trinity_string.sql5
-rw-r--r--sql/updates/1497_mangos_7314_01_characters_guild_rank.sql3
-rw-r--r--sql/updates/7312_01_mangos_mangos_string.sql5
-rw-r--r--sql/updates/7314_01_characters_guild_rank.sql3
-rw-r--r--sql/updates/CMakeLists.txt3
6 files changed, 88 insertions, 116 deletions
diff --git a/sql/characters.sql b/sql/characters.sql
index b0fc4151d0b..75bad2353e0 100644
--- a/sql/characters.sql
+++ b/sql/characters.sql
@@ -16,26 +16,6 @@
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
--
--- Table structure for table `character_db_version`
---
-
-DROP TABLE IF EXISTS `character_db_version`;
-CREATE TABLE `character_db_version` (
- `required_7314_01_characters_guild_rank` bit(1) default NULL
-) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED COMMENT='Last applied sql update to DB';
-
---
--- Dumping data for table `character_db_version`
---
-
-LOCK TABLES `character_db_version` WRITE;
-/*!40000 ALTER TABLE `character_db_version` DISABLE KEYS */;
-INSERT INTO `character_db_version` VALUES
-(NULL);
-/*!40000 ALTER TABLE `character_db_version` ENABLE KEYS */;
-UNLOCK TABLES;
-
---
-- Table structure for table `account_data`
--
@@ -730,28 +710,6 @@ LOCK TABLES `character_spell_cooldown` WRITE;
UNLOCK TABLES;
--
--- Table structure for table `character_ticket`
---
-
-DROP TABLE IF EXISTS `character_ticket`;
-CREATE TABLE `character_ticket` (
- `ticket_id` int(11) unsigned NOT NULL auto_increment,
- `guid` int(11) unsigned NOT NULL default '0',
- `ticket_text` text,
- `ticket_lastchange` TIMESTAMP ON UPDATE CURRENT_TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
- PRIMARY KEY (`ticket_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Player System';
-
---
--- Dumping data for table `character_ticket`
---
-
-LOCK TABLES `character_ticket` WRITE;
-/*!40000 ALTER TABLE `character_ticket` DISABLE KEYS */;
-/*!40000 ALTER TABLE `character_ticket` ENABLE KEYS */;
-UNLOCK TABLES;
-
---
-- Table structure for table `character_tutorial`
--
@@ -814,6 +772,74 @@ LOCK TABLES `corpse` WRITE;
UNLOCK TABLES;
--
+-- Table structure for table `game_event_condition_save`
+--
+
+DROP TABLE IF EXISTS `game_event_condition_save`;
+CREATE TABLE `game_event_condition_save` (
+ `event_id` mediumint(8) unsigned NOT NULL,
+ `condition_id` mediumint(8) unsigned NOT NULL default '0',
+ `done` float default '0',
+ PRIMARY KEY (`event_id`,`condition_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=utf8;
+
+--
+-- Dumping data for table `game_event_condition_save`
+--
+
+LOCK TABLES `game_event_condition_save` WRITE;
+/*!40000 ALTER TABLE `game_event_condition_save` DISABLE KEYS */;
+/*!40000 ALTER TABLE `game_event_condition_save` ENABLE KEYS */;
+UNLOCK TABLES;
+
+--
+-- Table structure for table `game_event_save`
+--
+
+DROP TABLE IF EXISTS `game_event_save`;
+CREATE TABLE `game_event_save` (
+ `event_id` mediumint(8) unsigned NOT NULL,
+ `state` tinyint(3) unsigned NOT NULL default '1',
+ `next_start` timestamp NOT NULL default '0000-00-00 00:00:00',
+ PRIMARY KEY (`event_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=utf8;
+
+--
+-- Dumping data for table `game_event_save`
+--
+
+LOCK TABLES `game_event_save` WRITE;
+/*!40000 ALTER TABLE `game_event_save` DISABLE KEYS */;
+/*!40000 ALTER TABLE `game_event_save` ENABLE KEYS */;
+UNLOCK TABLES;
+
+--
+-- Table structure for table `gm_tickets`
+--
+
+DROP TABLE IF EXISTS `gm_tickets`;
+CREATE TABLE `gm_tickets` (
+ `guid` int(10) NOT NULL auto_increment,
+ `playerGuid` int(11) unsigned NOT NULL default '0',
+ `name` varchar(15) NOT NULL,
+ `message` text NOT NULL,
+ `timestamp` int(10) NOT NULL default '0',
+ `closed` int(10) NOT NULL default '0',
+ `assignedto` int(10) NOT NULL default '0',
+ `comment` text NOT NULL,
+ PRIMARY KEY (`guid`)
+) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Player System';
+
+--
+-- Dumping data for table `gm_tickets`
+--
+
+LOCK TABLES `gm_tickets` WRITE;
+/*!40000 ALTER TABLE `gm_tickets` DISABLE KEYS */;
+/*!40000 ALTER TABLE `gm_tickets` ENABLE KEYS */;
+UNLOCK TABLES;
+
+--
-- Table structure for table `groups`
--
@@ -847,9 +873,10 @@ LOCK TABLES `groups` WRITE;
/*!40000 ALTER TABLE `groups` ENABLE KEYS */;
UNLOCK TABLES;
--- ----------------------------
--- Table structure for group_instance
--- ----------------------------
+--
+-- Table structure for table `group_instance`
+--
+
DROP TABLE IF EXISTS `group_instance`;
CREATE TABLE `group_instance` (
`leaderGuid` int(11) unsigned NOT NULL default '0',
@@ -1131,9 +1158,10 @@ LOCK TABLES `instance` WRITE;
/*!40000 ALTER TABLE `instance` ENABLE KEYS */;
UNLOCK TABLES;
--- ----------------------------
--- Table structure for instance_reset
--- ----------------------------
+--
+-- Table structure for table `instance_reset`
+--
+
DROP TABLE IF EXISTS `instance_reset`;
CREATE TABLE `instance_reset` (
`mapid` int(11) unsigned NOT NULL default '0',
@@ -1383,66 +1411,6 @@ LOCK TABLES `saved_variables` WRITE;
UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
---
--- Table structure for table `game_event_condition_save`
---
-
-DROP TABLE IF EXISTS `game_event_condition_save`;
-CREATE TABLE `game_event_condition_save` (
- `event_id` mediumint(8) unsigned NOT NULL,
- `condition_id` mediumint(8) unsigned NOT NULL default '0',
- `done` float default '0',
- PRIMARY KEY (`event_id`,`condition_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-
---
--- Dumping data for table `game_event_condition_save`
---
-
-LOCK TABLES `game_event_condition_save` WRITE;
-/*!40000 ALTER TABLE `game_event_condition_save` DISABLE KEYS */;
-/*!40000 ALTER TABLE `game_event_condition_save` ENABLE KEYS */;
-UNLOCK TABLES;
-
---
--- Table structure for table `game_event_save`
---
-
-DROP TABLE IF EXISTS `game_event_save`;
-CREATE TABLE `game_event_save` (
- `event_id` mediumint(8) unsigned NOT NULL,
- `state` tinyint(3) unsigned NOT NULL default '1',
- `next_start` timestamp NOT NULL default '0000-00-00 00:00:00',
- PRIMARY KEY (`event_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-
---
--- Dumping data for table `game_event_save`
---
-
-LOCK TABLES `game_event_save` WRITE;
-/*!40000 ALTER TABLE `game_event_save` DISABLE KEYS */;
-/*!40000 ALTER TABLE `game_event_save` ENABLE KEYS */;
-UNLOCK TABLES;
-
---
--- Table structure for table `has_logged_in_before`
---
-
-DROP TABLE IF EXISTS `has_logged_in_before`;
-CREATE TABLE `has_logged_in_before` (
- `guid` int(11) unsigned NOT NULL default '0',
- PRIMARY KEY (`guid`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='ImpConfig check';
-
---
--- Dumping data for table `has_logged_in_before`
---
-
-LOCK TABLES `has_logged_in_before` WRITE;
-/*!40000 ALTER TABLE `has_logged_in_before` DISABLE KEYS */;
-/*!40000 ALTER TABLE `has_logged_in_before` ENABLE KEYS */;
-UNLOCK TABLES;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
@@ -1454,3 +1422,4 @@ UNLOCK TABLES;
-- Dump completed on 2008-01-10 11:37:06
+-- Updated on 2003-02-22 01:44:45 \ No newline at end of file
diff --git a/sql/updates/1495_mangos_7312_01_world_trinity_string.sql b/sql/updates/1495_mangos_7312_01_world_trinity_string.sql
new file mode 100644
index 00000000000..9eb246ea6f3
--- /dev/null
+++ b/sql/updates/1495_mangos_7312_01_world_trinity_string.sql
@@ -0,0 +1,5 @@
+/*ALTER TABLE db_version CHANGE COLUMN required_7303_01_mangos_pools required_7312_01_mangos_mangos_string bit;*/
+
+DELETE FROM `mangos_string` WHERE entry = 810;
+INSERT INTO `mangos_string` VALUES
+(810,'|Hplayer:$N|h[$N]|h has earned the achievement $a!',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); \ No newline at end of file
diff --git a/sql/updates/1497_mangos_7314_01_characters_guild_rank.sql b/sql/updates/1497_mangos_7314_01_characters_guild_rank.sql
new file mode 100644
index 00000000000..80aa49c21c4
--- /dev/null
+++ b/sql/updates/1497_mangos_7314_01_characters_guild_rank.sql
@@ -0,0 +1,3 @@
+/*ALTER TABLE character_db_version CHANGE COLUMN required_7307_01_characters_arena_team_member required_7314_01_characters_guild_rank bit;*/
+
+UPDATE guild_rank SET rights = rights & ~0x00020000; \ No newline at end of file
diff --git a/sql/updates/7312_01_mangos_mangos_string.sql b/sql/updates/7312_01_mangos_mangos_string.sql
deleted file mode 100644
index 8a5f848d438..00000000000
--- a/sql/updates/7312_01_mangos_mangos_string.sql
+++ /dev/null
@@ -1,5 +0,0 @@
-ALTER TABLE db_version CHANGE COLUMN required_7303_01_mangos_pools required_7312_01_mangos_mangos_string bit;
-
-DELETE FROM `mangos_string` WHERE entry = 810;
-INSERT INTO `mangos_string` VALUES
-(810,'|Hplayer:$N|h[$N]|h has earned the achievement $a!',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
diff --git a/sql/updates/7314_01_characters_guild_rank.sql b/sql/updates/7314_01_characters_guild_rank.sql
deleted file mode 100644
index 54cf219fc85..00000000000
--- a/sql/updates/7314_01_characters_guild_rank.sql
+++ /dev/null
@@ -1,3 +0,0 @@
-ALTER TABLE character_db_version CHANGE COLUMN required_7307_01_characters_arena_team_member required_7314_01_characters_guild_rank bit;
-
-UPDATE guild_rank SET rights = rights & ~0x00020000; \ No newline at end of file
diff --git a/sql/updates/CMakeLists.txt b/sql/updates/CMakeLists.txt
index 285677f469b..a9c343b7353 100644
--- a/sql/updates/CMakeLists.txt
+++ b/sql/updates/CMakeLists.txt
@@ -40,4 +40,7 @@ INSTALL(FILES
1426_mangos_7292_02_world_locales_points_of_interest.sql
1463_mangos_7303_01_world_pools.sql
1470_world_scripts.sql
+1484_mangos_7307_01_characters_arena_team_member.sql
+1495_mangos_7312_01_world_trinity_string.sql
+1497_mangos_7314_01_characters_guild_rank.sql
DESTINATION share/trinity/sql/updates) \ No newline at end of file