server/sql/updates
VladimirMangos f73868a703 [11117] Allow for non-instancable maps have InstanceData and instance scripts.
* New table added for non-instanced maps (except BG/arena):
    - `mangos`.`world_template` (script mapping to non instanced data)
    - `characters`.`world` (saved script data string storage)

* InstancedData created for any map types including BGs/arenas, that allow have scripts
  state for any maps, but BG/arena instance data not saved.

Note: Possible structures will renamed later for clarify apply to any type maps,
but avoid for now for simplify changes and hard affect to script library sources.
2011-02-08 04:15:13 +03:00
..
0.5 Removed trailing whitespaces and CRLFs 2008-10-22 11:52:03 +02:00
0.6 Removed trailing whitespaces and CRLFs 2008-10-22 11:52:03 +02:00
0.7 Removed trailing whitespaces and CRLFs 2008-10-22 11:52:03 +02:00
0.8 Removed trailing whitespaces and CRLFs 2008-10-22 11:52:03 +02:00
0.9 Removed trailing whitespaces and CRLFs 2008-10-22 11:52:03 +02:00
0.10 Removed trailing whitespaces and CRLFs 2008-10-22 11:52:03 +02:00
0.11 Removed trailing whitespaces and CRLFs 2008-10-22 11:52:03 +02:00
0.12 [9779] Drop trailing whitespaces. 2010-04-23 05:28:51 +04:00
0.13 [9779] Drop trailing whitespaces. 2010-04-23 05:28:51 +04:00
0.14 [9779] Drop trailing whitespaces. 2010-04-23 05:28:51 +04:00
0.15 [9779] Drop trailing whitespaces. 2010-04-23 05:28:51 +04:00
0.16 [11066] Remove tail whitespaces. 2011-01-25 00:22:29 +03:00
10008_01_realmd_realmd_db_version.sql [10008] Fix sqls 2010-05-30 23:58:27 +03:00
10148_01_mangos_mangos_string.sql [10148] Improve .gm ingame command 2010-07-04 00:30:36 +02:00
10156_01_characters_character_aura.sql [11066] Remove tail whitespaces. 2011-01-25 00:22:29 +03:00
10156_02_characters_pet_aura.sql [11066] Remove tail whitespaces. 2011-01-25 00:22:29 +03:00
10156_03_mangos_spell_proc_event.sql [10156] Add shared object for auras of same spell and move spell proc code to its own file, also spread procs by auras and effect indexes. 2010-07-07 19:08:26 +03:00
10159_01_mangos_spell_proc_event.sql [10159] clean-up after recent changes 2010-07-08 13:30:08 +03:00
10160_01_characters_character_aura.sql [10160] Fix sql for character_aura and pet_aura 2010-07-08 17:52:36 +03:00
10160_02_characters_pet_aura.sql [10160] Fix sql for character_aura and pet_aura 2010-07-08 17:52:36 +03:00
10171_01_mangos_mangos_string.sql [10171] Clarify acoount password/lock command errors. 2010-07-09 23:20:39 +04:00
10197_01_mangos_playercreateinfo.sql [10197] Add to playercreateinfo original player orientation field. 2010-07-15 22:25:27 +04:00
10203_01_mangos_item_template.sql [10203] Rename item_template.Faction to Flags2 and define some values for it. 2010-07-17 04:51:25 +04:00
10205_01_mangos_spell_area.sql [10205] Correctly implement flying mount restrictions in zone 4395 by use of special area flag. 2010-07-17 05:53:17 +02:00
10207_01_mangos_npc_vendor.sql [10207] Implement ITEM_FLAGS2_EXT_COST_REQUIRES_GOLD use instead sign of ExtendedCost field. 2010-07-17 19:23:38 +04:00
10208_01_mangos_playercreateinfo.sql [10208] Add proper data for character orientation at creating. 2010-07-17 20:04:38 +04:00
10217_01_mangos_playercreateinfo_spell.sql [11066] Remove tail whitespaces. 2011-01-25 00:22:29 +03:00
10217_02_mangos_playercreateinfo_action.sql [10217] Update playercreateinfo_action/playercreateinfo_spell 2010-07-18 12:26:12 +04:00
10217_03_mangos_spell_learn_spell.sql [10217] Update playercreateinfo_action/playercreateinfo_spell 2010-07-18 12:26:12 +04:00
10217_04_mangos_spell_chain.sql [10217] Update playercreateinfo_action/playercreateinfo_spell 2010-07-18 12:26:12 +04:00
10217_05_mangos_spell_proc_event.sql [10217] Update playercreateinfo_action/playercreateinfo_spell 2010-07-18 12:26:12 +04:00
10219_01_mangos_spell_proc_event.sql [10219] Fix spell 36032 stacking and procs 2010-07-18 20:02:13 +03:00
10223_01_mangos_spell_proc_event.sql [10223] Implement spell 44572 affect to permament stun immuned targets. 2010-07-19 06:53:01 +04:00
10237_01_mangos_spell_bonus_data.sql [10237] Implement additional damage proc on hit for Spell 8024 and ranks. 2010-07-21 03:19:52 +02:00
10244_01_mangos_command.sql [10244] Implement .stable gm command for open pet stable anywhere. 2010-07-22 08:49:15 +04:00
10251_01_mangos_command.sql [10251] Clarify error message for one from redundent commamd data case. 2010-07-23 19:34:23 +04:00
10252_01_mangos_reputation_reward_rate.sql [10252] Implement reputation_reward_rate for quests and creatures 2010-07-23 17:50:36 +02:00
10254_01_characters_auctionhouse.sql [11066] Remove tail whitespaces. 2011-01-25 00:22:29 +03:00
10256_01_mangos_command.sql [10256] New auction command with subcommands for look different auction stores from anywhere. 2010-07-24 14:29:38 +04:00
10257_01_mangos_command.sql [10257] Fixed typo in "alliance" in recent commit changes. 2010-07-24 15:27:27 +04:00
10263_01_mangos_pool_creature.sql [10263] Not allow listing pool elements in more one pool. 2010-07-24 18:49:32 +04:00
10263_02_mangos_pool_gameobject.sql [10263] Not allow listing pool elements in more one pool. 2010-07-24 18:49:32 +04:00
10263_03_mangos_pool_pool.sql [10263] Not allow listing pool elements in more one pool. 2010-07-24 18:49:32 +04:00
10270_01_mangos_reputation_spillover_template.sql [10270] Implement basic system for reputation spillover 2010-07-25 17:05:34 +02:00
10286_01_mangos_creature_addon.sql [10286] Use unsigned type for creature_addon.guid 2010-07-30 02:54:18 +04:00
10289_01_mangos_creature_template.sql [10289] Adjust creature models system 2010-07-30 16:40:17 +02:00
10289_02_mangos_creature_model_info.sql [10289] Adjust creature models system 2010-07-30 16:40:17 +02:00
10299_01_mangos_event_id_scripts.sql [10299] Add new script call ProcessEventId 2010-07-31 17:52:38 +02:00
10307_01_mangos_instance_template.sql [10307] Rename two tables to prefix scripted_, making the tables have consistent names 2010-08-01 23:10:37 +02:00
10307_02_mangos_scripted_areatrigger.sql [10307] Rename two tables to prefix scripted_, making the tables have consistent names 2010-08-01 23:10:37 +02:00
10307_03_mangos_scripted_event_id.sql [10307] Rename two tables to prefix scripted_, making the tables have consistent names 2010-08-01 23:10:37 +02:00
10312_01_characters_character_aura.sql [10312] Allow store in DB same spell auras from different casters. 2010-08-03 04:06:07 +04:00
10312_02_characters_pet_aura.sql [10312] Allow store in DB same spell auras from different casters. 2010-08-03 04:06:07 +04:00
10314_01_mangos_mangos_string.sql [10314] Implement commands for work with areatriggers in game. 2010-08-04 00:58:01 +04:00
10314_02_mangos_command.sql [10314] Implement commands for work with areatriggers in game. 2010-08-04 00:58:01 +04:00
10323_01_mangos_mangos_string.sql [10323] Implement achivement view commands. 2010-08-06 02:15:09 +04:00
10323_02_mangos_command.sql [10323] Implement achivement view commands. 2010-08-06 02:15:09 +04:00
10331_01_mangos_mangos_string.sql [10331] More basic chat command parsing functions and its uses. 2010-08-09 03:52:11 +04:00
10331_02_mangos_command.sql [10331] More basic chat command parsing functions and its uses. 2010-08-09 03:52:11 +04:00
10332_01_characters_character_aura.sql [10332] Save cast item guid for auras also. 2010-08-09 06:17:23 +04:00
10332_02_characters_pet_aura.sql [10332] Save cast item guid for auras also. 2010-08-09 06:17:23 +04:00
10342_01_mangos_mangos_string.sql [10342] Cleanup achievement code and add new commands. 2010-08-11 07:49:46 +04:00
10342_02_mangos_command.sql [10342] Cleanup achievement code and add new commands. 2010-08-11 07:49:46 +04:00
10349_01_mangos_spell_proc_event.sql [10349] Implement work item 50351 and 50706. 2010-08-12 04:02:26 +04:00
10350_02_mangos_command.sql [10350] Fixed some typos. 2010-08-12 05:32:18 +04:00
10353_01_mangos_mangos_string.sql [10353] Avoid access to DB at view GM tickets by chat commands. 2010-08-13 05:41:34 +04:00
10353_02_mangos_command.sql [10353] Avoid access to DB at view GM tickets by chat commands. 2010-08-13 05:41:34 +04:00
10362_01_mangos_creature_movement_template.sql [10362] Implement creature_movement_template 2010-08-16 14:39:45 +02:00
10365_01_mangos_creature_ai_scripts.sql [10365] Implement ACTION_T_MOUNT_TO_ENTRY_OR_MODEL (43) for creature eventAI. 2010-08-17 19:48:19 +02:00
10381_01_mangos_creature_model_race.sql [10381] Implement generic system for racial model selection 2010-08-19 16:58:53 +02:00
10400_01_mangos_mangos_string.sql [10400] Fixed crash in .aura command for spell without auras. 2010-08-22 16:52:51 +04:00
10409_01_mangos_spell_chain.sql [10419] Check redundant single rank spell data in spell_chain. 2010-08-29 07:33:40 +04:00
10409_02_mangos_spell_proc_event.sql [10409] Restore work of 47230 and ranks 2010-08-26 20:29:30 +03:00
10410_01_mangos_spell_chain.sql [10410] Fix wrong sql 2010-08-27 10:55:40 +03:00
10411_01_mangos_spell_proc_event.sql [10419] Check redundant single rank spell data in spell_chain. 2010-08-29 07:33:40 +04:00
10416_01_mangos_spell_proc_event.sql [10419] Check redundant single rank spell data in spell_chain. 2010-08-29 07:33:40 +04:00
10419_01_mangos_spell_chain.sql [10419] Check redundant single rank spell data in spell_chain. 2010-08-29 07:33:40 +04:00
10422_01_mangos_spell_proc_event.sql [10427] Drop redundant data from spell_proc_event after recent spell chain changes. 2010-08-31 06:47:40 +04:00
10423_01_mangos_spell_chain.sql [10427] Drop redundant data from spell_proc_event after recent spell chain changes. 2010-08-31 06:47:40 +04:00
10427_01_mangos_spell_proc_event.sql [10428] Fix line ends :/ 2010-08-31 07:00:06 +04:00
10430_01_mangos_spell_chain.sql [10430] Improve detection removed ranks for spell in spell_chain 2010-08-31 19:04:39 +04:00
10454_01_mangos_spell_proc_event.sql [10454] Fix 54821 proc 2010-09-08 11:25:48 +03:00
10457_01_mangos_spell_proc_event.sql [10457] Fix proc of 51692 and ranks 2010-09-08 11:53:30 +03:00
10500_01_mangos_scripts.sql [10500] Extend SCRIPT_COMMAND_TALK to support random selected text 2010-09-18 01:55:29 +02:00
10503_01_characters_creature_respawn.sql [10503] Move *_respawn tables to characters DB. 2010-09-19 00:45:21 +04:00
10503_02_characters_gameobject_respawn.sql [10503] Move *_respawn tables to characters DB. 2010-09-19 00:45:21 +04:00
10503_03_mangos_creature_respawn.sql [10503] Move *_respawn tables to characters DB. 2010-09-19 00:45:21 +04:00
10503_04_mangos_gameobject_respawn.sql [10503] Move *_respawn tables to characters DB. 2010-09-19 00:45:21 +04:00
10537_01_mangos_command.sql [10537] Fixe typo in command help text. 2010-09-26 15:07:06 +04:00
10551_01_mangos_spell_proc_event.sql [10551] Fix 55880 proc 2010-09-27 10:29:24 +02:00
10568_01_characters_character_tutorial.sql [10568] Drop unused column 'realmid' from the table 'character_tutorial' 2010-09-30 22:51:39 +02:00
10582_01_mangos_spell_proc_event.sql [11066] Remove tail whitespaces. 2011-01-25 00:22:29 +03:00
10604_01_mangos_spell_proc_event.sql [11066] Remove tail whitespaces. 2011-01-25 00:22:29 +03:00
10621_01_mangos_quest_template.sql [10621] Add new field RequiredClasses for quest_template 2010-10-19 00:33:16 +02:00
10628_01_mangos_mangos_string.sql [10628] SQL update for prev. commit 2010-10-20 08:23:18 +04:00
10629_01_mangos_mangos_string.sql [10629] Drop function GuidHigh2TypeId 2010-10-20 09:12:43 +04:00
10654_01_mangos_game_event_creature_quest.sql [10654] Allow creature to offer same quest for more than one game event 2010-10-28 13:26:39 +02:00
10655_01_characters_character_queststatus_monthly.sql [10655] Add support for monthly quests 2010-10-29 20:39:01 +02:00
10660_01_mangos_game_event_quest.sql [10660] Make quest for game event be independent of source 2010-10-31 11:35:09 +01:00
10662_01_characters_item_loot.sql [10662] Implement partly item looting 2010-11-01 02:04:08 +03:00
10664_01_characters_arena_team_stats.sql [10664] Rename arena_team_stats fields for better fit to stored values. 2010-11-01 02:37:10 +03:00
10679_01_mangos_npc_vendor_template.sql [10679] New table npc_vendor_template for comon item data for diff vendors. 2010-11-04 20:22:47 +03:00
10679_02_mangos_creature_template.sql [10679] New table npc_vendor_template for comon item data for diff vendors. 2010-11-04 20:22:47 +03:00
10682_01_mangos_item_convert.sql [10682] New table 'item_convert' for convertion items. 2010-11-05 00:41:16 +03:00
10704_01_mangos_gossip_menu_option.sql [10704] Add the option to close gossip window in gossip system 2010-11-08 23:18:58 +01:00
10742_01_mangos_spell_bonus_data.sql [10742] Add spell_bonus_data.spell_bonus_data field and support for RAP bonuses use for spells damage from table. 2010-11-19 05:23:29 +03:00
10743_01_mangos_spell_chain.sql [10743] Add AP/RAP bonus data to spell_bonus_data. 2010-11-19 06:03:19 +03:00
10743_02_mangos_spell_bonus_data.sql [10743] Add AP/RAP bonus data to spell_bonus_data. 2010-11-19 06:03:19 +03:00
10746_01_mangos_mangos_string.sql [10746] Use objetguid for other .list auras command part 2010-11-19 17:06:33 +03:00
10749_01_mangos_mangos_string.sql [10749] Convert Gameobject owner to objectguid use. 2010-11-19 20:55:19 +03:00
10762_01_mangos_spell_proc_event.sql [11066] Remove tail whitespaces. 2011-01-25 00:22:29 +03:00
10764_01_mangos_spell_proc_event.sql [10764] Implement talent 44543 and ranks charges work. 2010-11-21 05:32:17 +03:00
10786_01_mangos_spell_proc_item_enchant.sql [10786] A bit spell proc housekeeping 2010-11-27 00:52:41 +01:00
10786_02_mangos_spell_proc_event.sql [10786] A bit spell proc housekeeping 2010-11-27 00:52:41 +01:00
10788_01_mangos_creature_addon.sql [10788] Replace bytes in single field bytes2 by independent fields for creature_addon. 2010-11-27 23:56:08 +03:00
10788_02_mangos_creature_template_addon.sql [10788] Replace bytes in single field bytes2 by independent fields for creature_addon. 2010-11-27 23:56:08 +03:00
10835_01_mangos_spell_proc_event.sql [10835] Add/correct a couple more spell_proc_event entries for trinket related spells 2010-12-08 01:31:48 +01:00
10862_01_characters_mail.sql [10862] Fixed not show and lost mail items in returned expire mails. 2010-12-12 09:10:08 +03:00
10863_01_mangos_spell_proc_event.sql [10863] Fixed triggering/use effects for item 54589, 54573, 37734, 32500, 28590. 2010-12-12 10:23:08 +03:00
10864_01_mangos_spell_proc_event.sql [10864] Implement itemsets 881, 882 at heal/damage target effect. 2010-12-12 11:19:50 +03:00
10867_01_mangos_npc_trainer_template.sql [10867] Implement templates for trainer spell data in npc_trainer_template. 2010-12-13 16:39:53 +03:00
10867_02_mangos_creature_template.sql [10867] Implement templates for trainer spell data in npc_trainer_template. 2010-12-13 16:39:53 +03:00
10883_01_mangos_spell_proc_event.sql [10883] Implement item 49982, 50641 equip effect 2010-12-17 16:13:15 +03:00
10906_01_mangos_spell_proc_event.sql [10906] Fix Glyph 45806 to trigger from 49184 and ranks instead of unrelated spells. 2010-12-22 01:06:19 +01:00
10906_02_mangos_spell_bonus_data.sql [10906] Fix Glyph 45806 to trigger from 49184 and ranks instead of unrelated spells. 2010-12-22 01:06:19 +01:00
10932_01_mangos_game_event_creature_data.sql [10932] Imporvments gameevent creature morphing. 2010-12-29 01:38:49 +03:00
10945_01_mangos_mangos_string.sql [10945] Restore check scripting lib API at load. 2011-01-01 18:39:09 +03:00
10946_01_mangos_spell_proc_event.sql [10946] Drop redundent spell_proc_event data. 2011-01-01 18:50:50 +03:00
10949_01_mangos_mangos_string.sql [10949] Fix the word accessable -> accessible in log message 2011-01-02 01:30:21 +01:00
10950_01_mangos_mangos_string.sql [10950] Check for scripting lib that it build with exactly same mangos rev. 2011-01-02 20:19:21 +03:00
10951_01_mangos_spell_proc_event.sql [10951] Add some missing spell_proc_event entries for set bonuses. 2011-01-03 01:07:30 +01:00
10972_01_mangos_command.sql [10972] Implement mass mail gm commands. 2011-01-06 06:55:51 +03:00
10973_01_characters_game_event_status.sql [10973] Implement game event mail sends at event start/stop. 2011-01-06 12:40:15 +03:00
10973_01_mangos_game_event_mail.sql [10973] Implement game event mail sends at event start/stop. 2011-01-06 12:40:15 +03:00
10988_01_mangos_mangos_string.sql [10988] Propertly note for not loaded script library version. 2011-01-09 06:06:52 +03:00
10989_01_mangos_loot_template.sql [10989] Implement post-3.1 and later fishing changes. 2011-01-09 14:37:56 +03:00
10993_01_mangos_loot_template.sql [10993] Fixed typo in recently add DB field comment. 2011-01-10 01:05:32 +03:00
10998_01_mangos_spell_proc_event.sql [10998] Re-write work proc of stackable spells with charges in more simple way 2011-01-11 05:15:51 +03:00
11002_01_mangos_spell_proc_event.sql [11002] Implement 8 pieces effect of itemset 204. 2011-01-13 10:50:33 +03:00
11018_01_mangos_command.sql [11018] Fixed security leveld for 'send mass mail' in DB. 2011-01-16 22:26:02 +03:00
11023_01_mangos_spell_threat.sql [11023] Implement support for threat multiplier and AP based threat bonus for spells. 2011-01-17 12:55:24 +01:00
11036_01_mangos_spell_threat.sql [11036] Update some data in spell_threat, making use of the new parameters 2011-01-18 14:00:33 +01:00
11040_01_mangos_spell_chain.sql [11040] Fixed spell bonuses apply to healing from 58757 2011-01-18 21:59:20 +03:00
11040_02_mangos_spell_bonus_data.sql [11040] Fixed spell bonuses apply to healing from 58757 2011-01-18 21:59:20 +03:00
11058_01_mangos_spell_proc_event.sql [11058] Add 2P bonus of item set 894 and 4P bonus of item set 884 to spell_proc_event 2011-01-21 14:35:50 +01:00
11115_01_mangos_command.sql [11115] Implement .gm setview command 2011-02-07 04:14:09 +02:00
11117_01_mangos_world_template.sql [11117] Allow for non-instancable maps have InstanceData and instance scripts. 2011-02-08 04:15:13 +03:00
11117_02_characters_world.sql [11117] Allow for non-instancable maps have InstanceData and instance scripts. 2011-02-08 04:15:13 +03:00
Makefile.am [11117] Allow for non-instancable maps have InstanceData and instance scripts. 2011-02-08 04:15:13 +03:00
README [10947] Update copyright notice for 2011 year. 2011-01-01 20:33:43 +03:00

= MaNGOS -- README =

Copyright (c) 2005-2011 MaNGOS <http://getmangos.com/>

See the COPYING file for copying conditions.

== Database Updates ==

This folder contains SQL files which will apply required updates to your MySQL
database, whenever the MaNGOS database structure has been changed or extended.

To see if you need an update, the file names have been given a fixed structure
that should enable you to see if you need an update or not.

=== File Name Description ===

File names are divided into two parts.

First part is the revision and counter that shows the commit revision that
will be compatible with the database after apply that particular update.
Counter sets the order to apply sql updates for the same revision.

The second part of the name is the database and the table that needs an update or has been added.

See an example below:

         6936_01_mangos_spell_chain.sql
         |    |  |      |
         |    |  |      |
         |    |  |      The table `spell_chain`
         |    |  |      will need an update.
         |    |  |
         |    |  Name of affected DB (default recommended name)
         |    |  Can be: characters, mangos, realmd
         |    |
         |    Counter show number of sql updates in updates list for provided revision
         |    and set proper order for sql updates for same revision
         |
         MaNGOS commit revision related to sql update.
         It included in commit description in form [6936] as you can see at http://github.com/mangos/mangos/commits/master

After applying an update the DB is compatible with the mangos revision of this sql update.
SQL updates include special protection against multiple and wrong order of update application.

Attempts to apply sql updates to an older DB without previous SQL updates in list for the database
or to DB with already applied this or later SQL update will generate an error and not be applied.

=== For Commiters ====

MaNGOS sources include special tool ( contrib/git_id ) for generation revision info
in commit notes and in src/shared/revision_nr.h file. It have option '-s' that let set
correct sql update names with revision number, generate sql update order guard queries,
and update version fields in mangos.sql/etc. For it use name sql updates in form
01_mangos_spell_chain.sql or 9999_01_mangos_spell_chain.sql (counter can be _01_, _02_, and etc,
dependent from sql updates amount in commit) and _not_ add to sql updates
guard queries. Include sql updates in commit. After commit adding to local repo call git_id
with -s option (and another, note: -s option not work propertly with -l option). Other steps
tool will do by self and apply changes to commit. After tool use commit with sql updates ready
to push.