server/sql/updates
Patman128 2ee1bb5219 [9906] More user friendly output at DB version check fail.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-05-16 03:03:25 +04: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 [9810] Move pre-switch sql updates (except realmd related) to subdir. 2010-04-29 22:31:29 +04:00
9010_01_realmd_realmlist.sql [9383] Move back from archive subdir 9010_01_realmd_realmlist.sql 2010-02-14 18:39:40 +03:00
9692_01_characters_mail.sql [9692] Switch to support client 3.3.3a (build 11723) 2010-04-08 04:27:09 +04:00
9692_02_characters_mail.sql [9714] Replace tab with spaces, just to make at least one push today. 2010-04-10 00:02:49 +02:00
9692_03_mangos_spell_proc_event.sql [9692] Switch to support client 3.3.3a (build 11723) 2010-04-08 04:27:09 +04:00
9702_01_characters_item.sql [9779] Drop trailing whitespaces. 2010-04-23 05:28:51 +04:00
9704_01_mangos_achievement_reward.sql [9704] Add to achievement_reward support gender dependent rewards. 2010-04-09 07:11:31 +04:00
9710_01_mangos_command.sql [9710] Add gm possibilities reset talents for all specs. 2010-04-09 22:43:11 +04:00
9716_01_mangos_npc_vendor.sql [9717] Fixed [9716] sql update. 2010-04-10 06:32:37 +04:00
9716_02_mangos_mangos_string.sql [9716] Allow to vendor have same items in list with different extanded price. 2010-04-10 05:41:30 +04:00
9720_01_mangos_spell_proc_event.sql [9720] Implement Glyph of Siphon Life and fix Siphon Life proc 2010-04-10 10:01:30 +03:00
9728_01_mangos_gossip_menu_option.sql [9728] Correct icon for one option in default gossip menu 2010-04-11 13:20:21 +02:00
9735_01_mangos_spell_proc_event.sql [9735] Fix proc for 53709 and ranks 2010-04-12 12:39:06 +03:00
9735_02_mangos_spell_chain.sql [9735] Fix proc for 53709 and ranks 2010-04-12 12:39:06 +03:00
9746_01_realmd_realmlist.sql [9746] Implement show realm version and build in realm list. 2010-04-14 09:15:33 +04:00
9747_01_mangos_battleground_template.sql [9747] Fixed bg template max/min per team values 2010-04-14 15:49:04 +04:00
9748_01_realmd_realmlist.sql [9748] Fixed startup problems after recent realmd DB. 2010-04-14 16:40:11 +04:00
9751_01_characters.sql [9751] Add index by spell to character_spell 2010-04-16 08:39:08 +04:00
9752_01_mangos_gameobject_template.sql [9752] Add storage for min/maxgold of gameobject 2010-04-16 08:45:46 +02:00
9753_01_mangos_instance_template.sql [9753] Add default value for parent-field in instance_template 2010-04-16 09:08:32 +02:00
9755_01_mangos_instance_template.sql [9755] Fixed sql update version and related data 2010-04-17 15:41:38 +04:00
9761_01_mangos_mangos_string.sql [9761] Restore .list object output. 2010-04-18 18:09:44 +04:00
9763_01_mangos_battleground_template.sql [9763] Use min/max BG/arena levels from DBC. Update table content. 2010-04-18 21:31:19 +04:00
9766_01_mangos_spell_proc_event.sql [9766] Remove outdated code for 54936 2010-04-20 12:03:55 +03:00
9767_01_mangos_mangos_string.sql [9767] Add the posibility to keep deleted characters in the database for a while and also add related commands. 2010-04-20 22:12:50 +04:00
9767_02_mangos_command.sql [9767] Add the posibility to keep deleted characters in the database for a while and also add related commands. 2010-04-20 22:12:50 +04:00
9767_03_characters_characters.sql [9767] Add the posibility to keep deleted characters in the database for a while and also add related commands. 2010-04-20 22:12:50 +04:00
9768_01_mangos_command.sql [9768] Fixed my last sec. fix problem :/ 2010-04-20 22:39:25 +04:00
9794_01_mangos_mangos_string.sql [9794] Implement ".account characters" command 2010-04-26 07:13:39 +04:00
9794_02_mangos_command.sql Fixed sql update for avoid apply problems. 2010-04-26 07:57:03 +04:00
9803_01_mangos_spell_bonus_data.sql [9803] Fix typo in taken damage/healing bonus calculations and fix damage of 64085 2010-04-29 13:14:44 +03:00
9826_01_mangos_spell_script_target.sql Replace DOS lines ends by Unix version. 2010-05-03 04:19:38 +04:00
9849_01_characters_saved_variables.sql [9849] Implement character database clean up. 2010-05-07 23:08:24 +02:00
9854_01_mangos_spell_bonus_data.sql [9855] Fix some sqls from prev. commit 2010-05-09 20:36:47 +03:00
9881_01_mangos_scripts.sql [9881] Add additional fields to *_scripts tables for storage of more data. 2010-05-12 12:02:38 +02:00
9883_01_mangos_scripts.sql [9883] Change SCRIPT_COMMAND_TALK to support CHAT_TYPE_* using enum ChatType 2010-05-12 14:09:38 +02:00
9886_01_mangos_mangos_string.sql [9886] Implement new commands for account search 2010-05-13 11:44:03 +04:00
9886_02_mangos_command.sql [9886] Implement new commands for account search 2010-05-13 11:44:03 +04:00
9891_01_mangos_creature_movement.sql [9891] Implement *_scripts for creature_movement 2010-05-14 12:16:54 +02:00
9891_02_mangos_creature_movement_scripts.sql [9891] Implement *_scripts for creature_movement 2010-05-14 12:16:54 +02:00
9899_01_mangos_spell_bonus_data.sql [9901] Second attempt fix sql update :/ 2010-05-15 12:45:28 +04:00
Makefile.am [9899] Fixed sql update for ptrev. commit. 2010-05-15 11:37:42 +04:00
README [9906] More user friendly output at DB version check fail. 2010-05-16 03:03:25 +04:00

= MaNGOS -- README =

Copyright (c) 2005-2010 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.