mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +00:00
[9250] Fixed my typo in 9246_01_characters_character.sql
And provide sql update for case if old sql update version already applied. It's no-op for case when used new sql update version.
This commit is contained in:
parent
2b3971ed26
commit
f444a6b9db
6 changed files with 10 additions and 4 deletions
|
|
@ -21,7 +21,7 @@
|
||||||
|
|
||||||
DROP TABLE IF EXISTS `character_db_version`;
|
DROP TABLE IF EXISTS `character_db_version`;
|
||||||
CREATE TABLE `character_db_version` (
|
CREATE TABLE `character_db_version` (
|
||||||
`required_9246_01_characters_character` bit(1) default NULL
|
`required_9250_01_characters_character` 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';
|
||||||
|
|
||||||
--
|
--
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ ALTER TABLE characters
|
||||||
ADD COLUMN `yesterdayKills` smallint(5) UNSIGNED NOT NULL default '0' AFTER todayKills,
|
ADD COLUMN `yesterdayKills` smallint(5) UNSIGNED NOT NULL default '0' AFTER todayKills,
|
||||||
ADD COLUMN `chosenTitle` int(10) UNSIGNED NOT NULL default '0' AFTER yesterdayKills,
|
ADD COLUMN `chosenTitle` int(10) UNSIGNED NOT NULL default '0' AFTER yesterdayKills,
|
||||||
ADD COLUMN `knownCurrencies` bigint(20) UNSIGNED NOT NULL default '0' AFTER chosenTitle,
|
ADD COLUMN `knownCurrencies` bigint(20) UNSIGNED NOT NULL default '0' AFTER chosenTitle,
|
||||||
ADD COLUMN `watchedFaction` int(10) NOT NULL default '0' AFTER knownCurrencies,
|
ADD COLUMN `watchedFaction` int(10) UNSIGNED NOT NULL default '0' AFTER knownCurrencies,
|
||||||
ADD COLUMN `drunk` smallint(5) UNSIGNED NOT NULL default '0' AFTER watchedFaction,
|
ADD COLUMN `drunk` smallint(5) UNSIGNED NOT NULL default '0' AFTER watchedFaction,
|
||||||
ADD COLUMN `health` int(10) UNSIGNED NOT NULL default '0' AFTER drunk,
|
ADD COLUMN `health` int(10) UNSIGNED NOT NULL default '0' AFTER drunk,
|
||||||
ADD COLUMN `power1` int(10) UNSIGNED NOT NULL default '0' AFTER health,
|
ADD COLUMN `power1` int(10) UNSIGNED NOT NULL default '0' AFTER health,
|
||||||
|
|
|
||||||
4
sql/updates/9250_01_characters_character.sql
Normal file
4
sql/updates/9250_01_characters_character.sql
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
ALTER TABLE character_db_version CHANGE COLUMN required_9246_01_characters_character required_9250_01_characters_character bit;
|
||||||
|
|
||||||
|
ALTER TABLE characters
|
||||||
|
CHANGE COLUMN `watchedFaction` `watchedFaction` int(10) UNSIGNED NOT NULL default '0';
|
||||||
|
|
@ -251,6 +251,7 @@ pkgdata_DATA = \
|
||||||
9244_01_mangos_spell_proc_event.sql \
|
9244_01_mangos_spell_proc_event.sql \
|
||||||
9244_02_mangos_spell_chain.sql \
|
9244_02_mangos_spell_chain.sql \
|
||||||
9246_01_characters_character.sql \
|
9246_01_characters_character.sql \
|
||||||
|
9250_01_characters_character.sql \
|
||||||
README
|
README
|
||||||
|
|
||||||
## Additional files to include when running 'make dist'
|
## Additional files to include when running 'make dist'
|
||||||
|
|
@ -482,4 +483,5 @@ EXTRA_DIST = \
|
||||||
9244_01_mangos_spell_proc_event.sql \
|
9244_01_mangos_spell_proc_event.sql \
|
||||||
9244_02_mangos_spell_chain.sql \
|
9244_02_mangos_spell_chain.sql \
|
||||||
9246_01_characters_character.sql \
|
9246_01_characters_character.sql \
|
||||||
|
9250_01_characters_character.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 "9249"
|
#define REVISION_NR "9250"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
#ifndef __REVISION_SQL_H__
|
#ifndef __REVISION_SQL_H__
|
||||||
#define __REVISION_SQL_H__
|
#define __REVISION_SQL_H__
|
||||||
#define REVISION_DB_CHARACTERS "required_9246_01_characters_character"
|
#define REVISION_DB_CHARACTERS "required_9250_01_characters_character"
|
||||||
#define REVISION_DB_MANGOS "required_9244_02_mangos_spell_chain"
|
#define REVISION_DB_MANGOS "required_9244_02_mangos_spell_chain"
|
||||||
#define REVISION_DB_REALMD "required_9010_01_realmd_realmlist"
|
#define REVISION_DB_REALMD "required_9010_01_realmd_realmlist"
|
||||||
#endif // __REVISION_SQL_H__
|
#endif // __REVISION_SQL_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue