Skip to content

Commit

Permalink
[12948] Fix database update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberium committed Dec 19, 2016
1 parent cd581d8 commit 4ccaefc
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 10 deletions.
2 changes: 1 addition & 1 deletion sql/base/mangos.sql
Expand Up @@ -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_12947_01_mangos_game_event` bit(1) DEFAULT NULL
`required_12948_04_mangos_npc_trainer_template` bit(1) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Used DB version notes';

--
Expand Down
@@ -1,2 +1,3 @@
ALTER TABLE areatrigger_teleport ADD COLUMN `condition_id` INT(11) unsigned NOT NULL default '0' AFTER target_orientation;
ALTER TABLE db_version CHANGE COLUMN required_12947_01_mangos_game_event required_12948_01_mangos_areatrigger_teleport bit;

ALTER TABLE areatrigger_teleport ADD COLUMN `condition_id` INT(11) unsigned NOT NULL default '0' AFTER target_orientation;
3 changes: 3 additions & 0 deletions sql/updates/mangos/12948_02_mangos_quest_template.sql
@@ -0,0 +1,3 @@
ALTER TABLE db_version CHANGE COLUMN required_12948_01_mangos_areatrigger_teleport required_12948_02_mangos_quest_template bit;

ALTER TABLE quest_template ADD COLUMN RequiredCondition INT(11) UNSIGNED NOT NULL DEFAULT 0 AFTER RequiredSkillValue;
3 changes: 3 additions & 0 deletions sql/updates/mangos/12948_03_mangos_npc_trainer.sql
@@ -0,0 +1,3 @@
ALTER TABLE db_version CHANGE COLUMN required_12948_02_mangos_quest_template required_12948_03_mangos_npc_trainer bit;

ALTER TABLE npc_trainer ADD COLUMN `condition_id` INT(11) unsigned NOT NULL default '0' AFTER reqlevel;
3 changes: 3 additions & 0 deletions sql/updates/mangos/12948_04_mangos_npc_trainer_template.sql
@@ -0,0 +1,3 @@
ALTER TABLE db_version CHANGE COLUMN required_12948_03_mangos_npc_trainer required_12948_04_mangos_npc_trainer_template bit;

ALTER TABLE npc_trainer_template ADD COLUMN `condition_id` INT(11) unsigned NOT NULL default '0' AFTER reqlevel;
3 changes: 0 additions & 3 deletions sql/updates/mangos/questConditions.sql

This file was deleted.

4 changes: 0 additions & 4 deletions sql/updates/mangos/trainer_conditon_id.sql

This file was deleted.

2 changes: 1 addition & 1 deletion src/shared/revision_sql.h
Expand Up @@ -2,5 +2,5 @@
#define __REVISION_SQL_H__
#define REVISION_DB_REALMD "required_10008_01_realmd_realmd_db_version"
#define REVISION_DB_CHARACTERS "required_12942_01_characters_reset_talents"
#define REVISION_DB_MANGOS "required_12947_01_mangos_game_event"
#define REVISION_DB_MANGOS "required_12948_04_mangos_npc_trainer_template"
#endif // __REVISION_SQL_H__

0 comments on commit 4ccaefc

Please sign in to comment.