mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +00:00
[9753] Add default value for parent-field in instance_template
Signed-off-by: NoFantasy <nofantasy@nf.no>
This commit is contained in:
parent
5570f8c9cd
commit
f25c319bc7
5 changed files with 9 additions and 4 deletions
|
|
@ -24,7 +24,7 @@ CREATE TABLE `db_version` (
|
|||
`version` varchar(120) default NULL,
|
||||
`creature_ai_version` varchar(120) default NULL,
|
||||
`cache_id` int(10) default '0',
|
||||
`required_9752_01_mangos_gameobject_template` bit(1) default NULL
|
||||
`required_9753_01_mangos_instance_template` bit(1) default NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED COMMENT='Used DB version notes';
|
||||
|
||||
--
|
||||
|
|
@ -2033,7 +2033,7 @@ UNLOCK TABLES;
|
|||
DROP TABLE IF EXISTS `instance_template`;
|
||||
CREATE TABLE `instance_template` (
|
||||
`map` smallint(5) unsigned NOT NULL,
|
||||
`parent` int(10) unsigned NOT NULL,
|
||||
`parent` smallint(5) unsigned NOT NULL default '0',
|
||||
`levelMin` tinyint(3) unsigned NOT NULL default '0',
|
||||
`levelMax` tinyint(3) unsigned NOT NULL default '0',
|
||||
`startLocX` float default NULL,
|
||||
|
|
|
|||
3
sql/updates/9753_01_mangos_instance_template.sql
Normal file
3
sql/updates/9753_01_mangos_instance_template.sql
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
ALTER TABLE db_version CHANGE COLUMN required_9752_01_mangos_gameobject_template required_9753_01_mangos_instance_template bit;
|
||||
|
||||
ALTER TABLE instance_template CHANGE COLUMN parent parent smallint(5) unsigned NOT NULL default '0';
|
||||
|
|
@ -123,6 +123,7 @@ pkgdata_DATA = \
|
|||
9748_01_realmd_realmlist.sql \
|
||||
9751_01_characters.sql \
|
||||
9752_01_mangos_gameobject_template.sql \
|
||||
9753_01_mangos_instance_template.sql \
|
||||
README
|
||||
|
||||
## Additional files to include when running 'make dist'
|
||||
|
|
@ -226,4 +227,5 @@ EXTRA_DIST = \
|
|||
9748_01_realmd_realmlist.sql \
|
||||
9751_01_characters.sql \
|
||||
9752_01_mangos_gameobject_template.sql \
|
||||
9753_01_mangos_instance_template.sql \
|
||||
README
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "9752"
|
||||
#define REVISION_NR "9753"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#ifndef __REVISION_SQL_H__
|
||||
#define __REVISION_SQL_H__
|
||||
#define REVISION_DB_CHARACTERS "required_9751_01_characters"
|
||||
#define REVISION_DB_MANGOS "required_9752_01_mangos_gameobject_template"
|
||||
#define REVISION_DB_MANGOS "required_9753_01_mangos_instance_template"
|
||||
#define REVISION_DB_REALMD "required_9748_01_realmd_realmlist"
|
||||
#endif // __REVISION_SQL_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue