mirror of
https://github.com/mangosfour/server.git
synced 2025-12-21 19:37:02 +00:00
[7938] Use same type for account ids in different tables related to used in code uint32 type for it.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
dacdf4e60f
commit
65dd5e568d
4 changed files with 9 additions and 3 deletions
|
|
@ -21,7 +21,7 @@
|
||||||
|
|
||||||
DROP TABLE IF EXISTS `realmd_db_version`;
|
DROP TABLE IF EXISTS `realmd_db_version`;
|
||||||
CREATE TABLE `realmd_db_version` (
|
CREATE TABLE `realmd_db_version` (
|
||||||
`required_7867_01_realmd_account` bit(1) default NULL
|
`required_7938_01_realmd_account` bit(1) default NULL
|
||||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED COMMENT='Last applied sql update to DB';
|
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED COMMENT='Last applied sql update to DB';
|
||||||
|
|
||||||
--
|
--
|
||||||
|
|
@ -41,7 +41,7 @@ UNLOCK TABLES;
|
||||||
|
|
||||||
DROP TABLE IF EXISTS `account`;
|
DROP TABLE IF EXISTS `account`;
|
||||||
CREATE TABLE `account` (
|
CREATE TABLE `account` (
|
||||||
`id` bigint(20) unsigned NOT NULL auto_increment COMMENT 'Identifier',
|
`id` int(11) unsigned NOT NULL auto_increment COMMENT 'Identifier',
|
||||||
`username` varchar(32) NOT NULL default '',
|
`username` varchar(32) NOT NULL default '',
|
||||||
`sha_pass_hash` varchar(40) NOT NULL default '',
|
`sha_pass_hash` varchar(40) NOT NULL default '',
|
||||||
`gmlevel` tinyint(3) unsigned NOT NULL default '0',
|
`gmlevel` tinyint(3) unsigned NOT NULL default '0',
|
||||||
|
|
|
||||||
4
sql/updates/7938_01_realmd_account.sql
Normal file
4
sql/updates/7938_01_realmd_account.sql
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
ALTER TABLE realmd_db_version CHANGE COLUMN required_7867_01_realmd_account required_7938_01_realmd_account bit;
|
||||||
|
|
||||||
|
ALTER TABLE account
|
||||||
|
CHANGE id id int(11) unsigned NOT NULL auto_increment COMMENT 'Identifier';
|
||||||
|
|
@ -209,6 +209,7 @@ pkgdata_DATA = \
|
||||||
7908_02_mangos_creature_addon.sql \
|
7908_02_mangos_creature_addon.sql \
|
||||||
7908_03_mangos_creature_template_addon.sql \
|
7908_03_mangos_creature_template_addon.sql \
|
||||||
7932_01_characters_character_pet.sql \
|
7932_01_characters_character_pet.sql \
|
||||||
|
7938_01_realmd_account.sql \
|
||||||
README
|
README
|
||||||
|
|
||||||
## Additional files to include when running 'make dist'
|
## Additional files to include when running 'make dist'
|
||||||
|
|
@ -398,4 +399,5 @@ EXTRA_DIST = \
|
||||||
7908_02_mangos_creature_addon.sql \
|
7908_02_mangos_creature_addon.sql \
|
||||||
7908_03_mangos_creature_template_addon.sql \
|
7908_03_mangos_creature_template_addon.sql \
|
||||||
7932_01_characters_character_pet.sql \
|
7932_01_characters_character_pet.sql \
|
||||||
|
7938_01_realmd_account.sql \
|
||||||
README
|
README
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "7937"
|
#define REVISION_NR "7938"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue