mirror of
https://github.com/mangosfour/server.git
synced 2025-12-30 19:37:04 +00:00
[8072] First step to get rid of data blob.
Adds new fields gender, level, xp, money, playerBytes, playerBytes2 and playerFlags to characters table. The update will not work if your database contains characters with an old data field (not fitting to the actual client version). It's recommended to backup your character database before applying this patch. Signed-off-by: hunuza <hunuza@gmail.com>
This commit is contained in:
parent
f34ce077c0
commit
8a32a19bad
13 changed files with 229 additions and 171 deletions
|
|
@ -21,7 +21,7 @@
|
|||
|
||||
DROP TABLE IF EXISTS `character_db_version`;
|
||||
CREATE TABLE `character_db_version` (
|
||||
`required_8030_02_characters_character_action` bit(1) default NULL
|
||||
`required_8072_02_characters_characters` bit(1) default NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED COMMENT='Last applied sql update to DB';
|
||||
|
||||
--
|
||||
|
|
@ -197,6 +197,13 @@ CREATE TABLE `characters` (
|
|||
`name` varchar(12) NOT NULL default '',
|
||||
`race` tinyint(3) unsigned NOT NULL default '0',
|
||||
`class` tinyint(3) unsigned NOT NULL default '0',
|
||||
`gender` TINYINT UNSIGNED NOT NULL default '0',
|
||||
`level` TINYINT UNSIGNED NOT NULL default '0',
|
||||
`xp` INT UNSIGNED NOT NULL default '0',
|
||||
`money` INT UNSIGNED NOT NULL default '0',
|
||||
`playerBytes` INT UNSIGNED NOT NULL default '0',
|
||||
`playerBytes2` INT UNSIGNED NOT NULL default '0',
|
||||
`playerFlags` INT UNSIGNED NOT NULL default '0',
|
||||
`position_x` float NOT NULL default '0',
|
||||
`position_y` float NOT NULL default '0',
|
||||
`position_z` float NOT NULL default '0',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue