* Used trinity sql coding style
* Remember to use 2227_mangos_7546_02_realmd_uptime to your realm database * Be careful 2227_mangos_7544_01_world_uptime will wipe all your data in uptime table * Added 2254_world for correction in command table * Fixed linux compile --HG-- branch : trunk
This commit is contained in:
@@ -0,0 +1,3 @@
|
|||||||
|
/*ALTER TABLE db_version CHANGE COLUMN required_7536_01_mangos_spell_chain required_7544_01_mangos_uptime bit;*/
|
||||||
|
|
||||||
|
DROP TABLE IF EXISTS `uptime`;
|
||||||
+1
-2
@@ -1,5 +1,4 @@
|
|||||||
ALTER TABLE realmd_db_version CHANGE COLUMN required_6976_01_realmd_realmd_db_version required_7546_02_realmd_uptime bit;
|
/*ALTER TABLE realmd_db_version CHANGE COLUMN required_6976_01_realmd_realmd_db_version required_7546_02_realmd_uptime bit;*/
|
||||||
|
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Table structure for table `uptime`
|
-- Table structure for table `uptime`
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
DELETE FROM `command` WHERE `name` IN ('server difftime', 'addmove', 'Mod32Value', 'allowmove', 'reload tickets', 'npc tempadd', 'gobject tempadd', 'gobject addtemp', 'npc addtemp');
|
||||||
|
INSERT INTO `command` VALUES
|
||||||
|
('gobject tempadd','2','Adds a temporary gameobject that is not saved to DB.'),
|
||||||
|
('npc tempadd','2','Adds temporary NPC, not saved to database.');
|
||||||
|
UPDATE `command` SET `name`="ahbotoption" WHERE `name`="ahbotoptions";
|
||||||
|
DELETE FROM `command` WHERE `name` LIKE "path%";
|
||||||
|
DELETE FROM `command` WHERE `name` LIKE "wp%";
|
||||||
|
INSERT INTO `command` VALUES
|
||||||
|
('wp load',2,'Syntax: .wp load $pathid\nLoad pathid number for selected creature. Creature must have no waypoint data.'),
|
||||||
|
('wp event',2,'Syntax: .wp event $subcommand\nType .path event to see the list of possible subcommands or .help path event $subcommand to see info on subcommands.'),
|
||||||
|
('wp unload',2,'Syntax: .wp unload\nUnload path for selected creature.'),
|
||||||
|
('wp show',2,'Syntax: .wp show $option\nOptions:\non $pathid (or selected creature with loaded path) - Show path\noff - Hide path\ninfo $slected_waypoint - Show info for selected waypoint.'),
|
||||||
|
('wp mod',2,'Syntax: .wp mod\nType .path mod to see the list of possible subcommands or .help path mod $subcommand to see info on subcommands.'),
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
ALTER TABLE db_version CHANGE COLUMN required_7536_01_mangos_spell_chain required_7544_01_mangos_uptime bit;
|
|
||||||
|
|
||||||
DROP TABLE IF EXISTS `uptime`;
|
|
||||||
@@ -77,6 +77,11 @@ SET(game_STAT_SRCS
|
|||||||
Creature.h
|
Creature.h
|
||||||
CreatureGroups.cpp
|
CreatureGroups.cpp
|
||||||
CreatureGroups.h
|
CreatureGroups.h
|
||||||
|
DBCEnums.h
|
||||||
|
DBCStores.cpp
|
||||||
|
DBCStores.h
|
||||||
|
DBCStructure.h
|
||||||
|
DBCfmt.h
|
||||||
Debugcmds.cpp
|
Debugcmds.cpp
|
||||||
DestinationHolder.cpp
|
DestinationHolder.cpp
|
||||||
DestinationHolder.h
|
DestinationHolder.h
|
||||||
|
|||||||
@@ -1,8 +1,6 @@
|
|||||||
SET(trinitydatabase_STAT_SRCS
|
SET(trinitydatabase_STAT_SRCS
|
||||||
DBCStores.cpp
|
DBCFileLoader.h
|
||||||
DBCStores.h
|
DBCStore.h
|
||||||
DBCStructure.h
|
|
||||||
DBCfmt.cpp
|
|
||||||
Database.cpp
|
Database.cpp
|
||||||
Database.h
|
Database.h
|
||||||
DatabaseEnv.h
|
DatabaseEnv.h
|
||||||
@@ -30,8 +28,6 @@ SET(trinitydatabase_STAT_SRCS
|
|||||||
SqlDelayThread.h
|
SqlDelayThread.h
|
||||||
SqlOperations.cpp
|
SqlOperations.cpp
|
||||||
SqlOperations.h
|
SqlOperations.h
|
||||||
dbcfile.cpp
|
|
||||||
dbcfile.h
|
|
||||||
)
|
)
|
||||||
|
|
||||||
add_library(trinitydatabase STATIC ${trinitydatabase_STAT_SRCS})
|
add_library(trinitydatabase STATIC ${trinitydatabase_STAT_SRCS})
|
||||||
|
|||||||
Reference in New Issue
Block a user