*Added another column for version table - by Zor

--HG--
branch : trunk
This commit is contained in:
Blaymoira
2009-01-19 18:11:08 +01:00
parent c81b6bc7b6
commit f28fb06d71
3 changed files with 5 additions and 1 deletions

View File

@@ -0,0 +1,2 @@
ALTER TABLE version
ADD `core_revision` BIGINT UNSIGNED AFTER `core_version`;

View File

@@ -140,4 +140,6 @@ INSTALL(FILES
871_world.sql
884_world.sql
905_world_scripts.sql
917_world.sql
919_world.sql
DESTINATION share/trinity/sql/updates)

View File

@@ -459,7 +459,7 @@ bool Master::_StartDB()
clearOnlineAccounts();
///- Insert version info into DB
WorldDatabase.PExecute("UPDATE `version` SET `core_version` = '%s'", _FULLVERSION);
WorldDatabase.PExecute("UPDATE `version` SET `core_version` = '%s', `core_rev` = '%s'", _FULLVERSION, _REVISION);
sWorld.LoadDBVersion();