mirror of
https://github.com/mangosfour/server.git
synced 2025-12-12 10:37:03 +00:00
[10160] Fix sql for character_aura and pet_aura
This commit is contained in:
parent
a4c197681b
commit
f5565c725a
6 changed files with 17 additions and 5 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_10156_02_characters_pet_aura` bit(1) default NULL
|
`required_10160_02_characters_pet_aura` 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';
|
||||||
|
|
||||||
--
|
--
|
||||||
|
|
@ -383,7 +383,7 @@ CREATE TABLE `character_aura` (
|
||||||
`remaintime1` INT(11) NOT NULL DEFAULT '0',
|
`remaintime1` INT(11) NOT NULL DEFAULT '0',
|
||||||
`remaintime2` INT(11) NOT NULL DEFAULT '0',
|
`remaintime2` INT(11) NOT NULL DEFAULT '0',
|
||||||
`effIndexMask` INT(11) NOT NULL DEFAULT '0',
|
`effIndexMask` INT(11) NOT NULL DEFAULT '0',
|
||||||
PRIMARY KEY (`guid`,`spell`,`effect_index`)
|
PRIMARY KEY (`guid`,`spell`)
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Player System';
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Player System';
|
||||||
|
|
||||||
--
|
--
|
||||||
|
|
@ -1468,7 +1468,7 @@ CREATE TABLE `pet_aura` (
|
||||||
`remaintime1` INT(11) NOT NULL DEFAULT '0',
|
`remaintime1` INT(11) NOT NULL DEFAULT '0',
|
||||||
`remaintime2` INT(11) NOT NULL DEFAULT '0',
|
`remaintime2` INT(11) NOT NULL DEFAULT '0',
|
||||||
`effIndexMask` INT(11) NOT NULL DEFAULT '0',
|
`effIndexMask` INT(11) NOT NULL DEFAULT '0',
|
||||||
PRIMARY KEY (`guid`,`spell`,`effect_index`)
|
PRIMARY KEY (`guid`,`spell`)
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Pet System';
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Pet System';
|
||||||
|
|
||||||
--
|
--
|
||||||
|
|
|
||||||
4
sql/updates/10160_01_characters_character_aura.sql
Normal file
4
sql/updates/10160_01_characters_character_aura.sql
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
ALTER TABLE character_db_version CHANGE COLUMN required_10156_02_characters_pet_aura required_10160_01_characters_character_aura bit;
|
||||||
|
|
||||||
|
alter table `character_aura` drop primary key;
|
||||||
|
alter table `character_aura` add primary key (`guid`,`spell`);
|
||||||
4
sql/updates/10160_02_characters_pet_aura.sql
Normal file
4
sql/updates/10160_02_characters_pet_aura.sql
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
ALTER TABLE character_db_version CHANGE COLUMN required_10160_01_characters_character_aura required_10160_02_characters_pet_aura bit;
|
||||||
|
|
||||||
|
alter table `pet_aura` drop primary key;
|
||||||
|
alter table `pet_aura` add primary key (`guid`,`spell`);
|
||||||
|
|
@ -103,6 +103,8 @@ pkgdata_DATA = \
|
||||||
10156_02_characters_pet_aura.sql \
|
10156_02_characters_pet_aura.sql \
|
||||||
10156_03_mangos_spell_proc_event.sql \
|
10156_03_mangos_spell_proc_event.sql \
|
||||||
10159_01_mangos_spell_proc_event.sql \
|
10159_01_mangos_spell_proc_event.sql \
|
||||||
|
10160_01_characters_character_aura.sql \
|
||||||
|
10160_02_characters_pet_aura.sql \
|
||||||
README
|
README
|
||||||
|
|
||||||
## Additional files to include when running 'make dist'
|
## Additional files to include when running 'make dist'
|
||||||
|
|
@ -186,4 +188,6 @@ EXTRA_DIST = \
|
||||||
10156_02_characters_pet_aura.sql \
|
10156_02_characters_pet_aura.sql \
|
||||||
10156_03_mangos_spell_proc_event.sql \
|
10156_03_mangos_spell_proc_event.sql \
|
||||||
10159_01_mangos_spell_proc_event.sql \
|
10159_01_mangos_spell_proc_event.sql \
|
||||||
|
10160_01_characters_character_aura.sql \
|
||||||
|
10160_02_characters_pet_aura.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 "10159"
|
#define REVISION_NR "10160"
|
||||||
#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_10156_02_characters_pet_aura"
|
#define REVISION_DB_CHARACTERS "required_10160_02_characters_pet_aura"
|
||||||
#define REVISION_DB_MANGOS "required_10159_01_mangos_spell_proc_event"
|
#define REVISION_DB_MANGOS "required_10159_01_mangos_spell_proc_event"
|
||||||
#define REVISION_DB_REALMD "required_10008_01_realmd_realmd_db_version"
|
#define REVISION_DB_REALMD "required_10008_01_realmd_realmd_db_version"
|
||||||
#endif // __REVISION_SQL_H__
|
#endif // __REVISION_SQL_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue